
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function fn_AddtoList(intSQLAccountID)
{
//alert ('vendor has been added');

	window.document.frmVendorSearch.hdnMode.value = "calllist";
	document.cookie =  "intSQLVendorID=" + intSQLAccountID;
	window.document.frmVendorSearch.action = window.document.frmVendorSearch.action + "?" + window.document.frmVendorSearch.strQueryString.value
	//alert(document.cookie)
	//alert('hdnMode2 = ' +window.document.frmVendorSearch.hdnMode.value);
	
	window.document.frmVendorSearch.submit();

}

function fn_DelfromList(intSQLAccountID)
{
//alert ('vendor has been deleted');

	window.document.frmVendorSearch.hdnMode.value = "delcalllist";
	document.cookie =  "intSQLVendorID=" + intSQLAccountID;
	window.document.frmVendorSearch.action = window.document.frmVendorSearch.action + "?" + window.document.frmVendorSearch.strQueryString.value
	//alert(document.cookie)
	//alert('hdnMode2 = ' +window.document.frmVendorSearch.hdnMode.value);
	
	window.document.frmVendorSearch.submit();

}

function GoSite(Target,intSQLAccountID) 
{

	Details = window.open(Target,'Details');

	
	window.document.frmVendorSearch.hdnMode.value = "ClickThrough";
	document.cookie =  "intSQLAccountID=" + intSQLAccountID;
	window.document.frmVendorSearch.action = window.document.frmVendorSearch.action + "?" + window.document.frmVendorSearch.strQueryString.value


	//alert(document.cookie)
	//alert('hdnMode2 = ' +window.document.frmVendorSearch.hdnMode.value);
	
	window.document.frmVendorSearch.submit();
	Details.focus();

}
function GoPage(Target,intSQLAccountID) 
{
	alert(Target)
	Details = window.open(Target,'Details');
	//document.location.href = Target
	//Details = window.open(Target,'Details');
	//alert(document.location.pathname);
	//document.location.href = Target
	//document.location.pathname 
	//var sFilePath = document.location.pathname 
	//alert('sFilePath1 = ' + sFilePath);
	//alert('length sFilePath1 = ' + sFilePath.length);
	//var iPathSize = sFilePath.length;
	//alert*iPathSize)
	//sFilePath = Left(sFilePath, iPathSize - 18)
	//alert('sFilePath2 = ' + sFilePath);
	
	
/*thisstring = document.location.pathname
alert(thisstring);
alert(thisstring.length);
alert(thisstring.lastIndexOf("/"));
thewordnum = thisstring.indexOf("/brideandgroom")
alert('thewordnum = ' + thewordnum);
theword = thisstring.substring(thewordnum)
document.open()
document.write(thisstring)
document.write(theword)
document.close()
*/
	
	//window.document.frmVendorSearch.hdnMode.value = "ClickThrough";
	//document.cookie =  "intSQLAccountID=" + intSQLAccountID;
	//window.document.frmVendorSearch.action = window.document.frmVendorSearch.action + "?" + window.document.frmVendorSearch.strQueryString.value


	//alert(document.cookie)
	//alert('hdnMode2 = ' +window.document.frmVendorSearch.hdnMode.value);
	
	///window.document.frmVendorSearch.submit();
	//Details.focus();

}
// -->
