function ReturnVisitorDetail(IP)
{
var strurl='AdminStatsReturnVisitorDetail.asp?IP=' + IP
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=460,height=300,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'ReturnVisitor',windowproperties)		
    newwindow.focus()
}

function UploadCV()
{
var strurl='JobCVUpload.asp?Action=ShowForm'
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=415,height=200,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'JobCVUpload',windowproperties)		
    newwindow.focus()
}
function FileRenamePopup(directory,filename)
{
//window.alert(filename)
var strurl='Admin_HTML_FileRename.asp?existingfilename=' + filename +'&Directory=' +directory
	var x = (screen.width - 700)  /2 
	var y =   10 //((screen.height -240))-10
var windowproperties='width=400,height=150,toolbar=no,scrollfsars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'filerename',windowproperties)		
    newwindow.focus()
}

function PDFPopup(pdfdoc)
{
var strurl='popupPDFPreview.asp?PDFDoc=' + pdfdoc
	var x = (screen.width - 700)  /2
	var y =   10 //((screen.height -240))-10
var windowproperties='width=700,height=450,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'PDFPreview',windowproperties)		
    newwindow.focus()
}

function Organization()
{
var strurl='popupOrganization.htm'
	var x = (screen.width - 700)  /2
	var y =   10 //((screen.height -240))-10
var windowproperties='width=700,height=300,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'Organization',windowproperties)		
    newwindow.focus()
}

function setActionForImport(argAction)
{
	document.ProviderImport.Action.Value=argAction
	document.form.submit
}

function jobapp()

		{

	var strurl = 'JobApplicationForm.asp' 
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=580,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'jobapp',windowproperties)		
    newwindow.focus()

}

function EditHTML(a)
//This function accepts Item_ID as a parameter.
		{

	var strurl = 'AdminHTMLEditor.asp?Item_ID=' + a 
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=580,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,a,windowproperties)		
    newwindow.focus()

}

function EditHTMLFile(directory, filename)
//This function accepts HTML file name as a parameter.
		{
//	window.alert(directory + filename)
	var strurl = 'AdminHTMLEditor.asp?Directory=' +directory +'&HTML_File_Name=' + filename 
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=580,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,'abc',windowproperties)		
    newwindow.focus()

}


function imageUpload(intItem_ID)
{
	var strurl='imageUpload.asp?Item_ID=' + intItem_ID
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=515,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,intItem_ID,windowproperties)		
    newwindow.focus()
}


function imageUploadHTML_Data(directory,HTML_Data)
{
	var strurl='imageUpload.asp?HTML_Data=' + HTML_Data +'&Directory=' + directory
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=515,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,HTML_Data,windowproperties)		
    newwindow.focus()

}

function PartnerLogoUpload(intPartnerID)
{
var strurl='PartnerLogoUpload.asp?PartnerID=' + intPartnerID
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=515,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,intPartnerID,windowproperties)		
    newwindow.focus()
}

function LinkLogoToPartner(intPartnerID)
		{

	var strurl = 'LinkLogoToPartner.asp?PartnerID=' + intPartnerID 
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=580,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,intPartnerID,windowproperties)		
    newwindow.focus()
}

function TestimonialLogoUpload(intTID)
{
var strurl='TestimonialLogoUpload.asp?TID=' + intTID
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=515,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,intTID,windowproperties)		
    newwindow.focus()
}

function LinkLogoToTestimonial(intTID)
{

	var strurl = 'LinkLogoToTestimonial.asp?TID=' + intTID 
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=580,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,intTID,windowproperties)		
    newwindow.focus()
}

function Upload_ProviderImportFile(arg1)
{
	var strurl = 'ProviderImport_csvUpload.asp?FileCount=' + arg1
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=515,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'

    newwindow = window.open(strurl,arg1,windowproperties)		
    newwindow.focus()
}
function PopupWebComsHelp(a)
{
	var strurl = 'WebComsHelp.htm#' + a 
	var x = (screen.width - 550) -40
	var y =   125 //((screen.height -240))-10
	var windowproperties='width=550,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=no,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'
    newwindow = window.open(strurl,a,windowproperties)		
    newwindow.focus()
}

function CenterImageUpload(type)
{
if (type == 'Upload') 
{
	var strurl='CenterImageUpload.asp'
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=515,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'
}
else if (type == 'Link') 
{
	var strurl='LinkCenterImageToMenu.asp'
	var x = (screen.width - 700) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=670,height=400,toolbar=no,scrollbars=yes,resizable=yes,titlebar=yes,status=yes,left=' + x + ',top=' +y +',screenX=0,screenY=0'
}
newwindow = window.open(strurl,'CenterImage',windowproperties)		
newwindow.focus()
}
function PrintPage()
{
var i;
window.print();
setTimeout('window.close()',500);
}
function SendMailToFriend(argRequestedFromPage)
{
	var strurl='ASP_common_files/SendMailToFriend.asp?RequestedFromPage=' + argRequestedFromPage
	var l = screen.width - 640
	var t = screen.height - 480
	var windowproperties = 'width=400,height=200,toolbar=no,scrollbars=yes,,resizable=yes,titlebar=yes,status=yes,left=' + l + ',top=' + t + ',screenX=0,screenY=0'
	newwindow = window.open(strurl,'MailtoFriend',windowproperties)		
	newwindow.focus()
}