function EditArticle(id)
{
	location.href="news.php?article="+id;
}

function logout()
{
	var frm=document.getElementById("logout_frm");

	frm.submit();
}

function LogOutFrontend()
{
	var frm=document.getElementById("logout_form");

	frm.submit();
}

function HighlightRow(row)
{
	row.style.backgroundColor="#B5121B";
	row.style.color="#ffffff";
}

function UnHighlightRow(row)
{
	row.style.backgroundColor="";
	row.style.color="#000000";
}

function EditProduct(id)
{
	location.href="shop.php?product="+id;
}

function EditCompany(id)
{
	location.href="market.php?company="+id;
}

function EditInternationalDoc(id)
{
	location.href="international.php?internationaldoc="+id;
}

function EditForm(id, country)
{
	location.href="forms.php?formid="+id+"&country="+country;
}

function EditAgency(id, industryid, locationid, agencyid)
{
	location.href="agency_admin.php?areaid="+id+"&industryid="+industryid+"&locationid="+locationid+"&agencyid="+agencyid;
	
}

function EditPlacementType(id)
{
	location.href="agency_admin.php?areaid="+id;
}

function DeleteDetailsImage(frm){
	
	if(confirm("Are you sure you want to delete this image?\n\nYou will NOT be able to undo this action.")){
		document.getElementById("deletedetailsimage").submit();
	}
}

function EditIndustryList(dropdown) {
	
	var myindex  = dropdown.selectedIndex
    var SelValue = dropdown.options[myindex].value
	location.href="agency_administration.php?locationid="+SelValue;
}

function ConfirmPurchaseReferral(frm){
	
	
	if(confirm("Are you sure you want to purchase this referral?\n\n This will cost you one credit.")){
		document.getElementById(frm).submit();
	}
}

function ConfirmPermanentPurchaseReferral(frm){
	
	
	if(confirm("Are you sure you want to purchase this referral?\n\n This will cost you one credit.")){
		document.getElementById(frm).submit();
	}
}


function EditSector(dropdown) {
	
	var myindex  = dropdown.selectedIndex
    var SelValue = dropdown.options[myindex].value
	alert(SelValue);
}

function AddSector(sector) {
	
	alert("Sector Added");
}


function AgencyGo(industryid, locationid)
{
	//alert('asdfdasf');
	location.href="agency_administration.php?industryid="+industryid+"&locationid="+locationid;
}


