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 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 popupExtLink(a,b)
//This function accepts Item_ID as a parameter.
		{

	var strurl = 'AdminExtLinkMaster.aspx?display=list&menu_id=' + a + '&menu_itemID=' + b
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=620,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 EditHTML(a,b)
//This function accepts Item_ID as a parameter.
		{
	var strurl = 'AdminHTMLEditorNew.aspx?Item_ID=' + a + '&Section_ID=' + b
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=770,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 EditDownLoadHTML(a,b)
//This function accepts Item_ID as a parameter.
		{
	var strurl = 'AdminHTMLEditorNew.aspx?DL_ID=' + a + '&Section_ID=' + b
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=770,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 = 'AdminHTMLEditorNew.aspx?Directory=' +directory +'&HTML_File_Name=' + filename 
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=590,height=420,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 LinkCenterImagetoMenu()
{
	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 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)		
}

function ClsAdmMstrLnk(intMenu_ID,intMenuItem_ID,strMenuItemName)
{
	var strurl='AdminClsAdmMstrLnk.aspx?Menu_ID=' + intMenu_ID + '&MenuItem_ID=' + intMenuItem_ID + '&MenuItemName=' + strMenuItemName
	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,intMenu_ID,windowproperties)		
}

//This is a Generic File Upload Function. Just Pass the folder name to this function
function UploadFile(FolderName)
{
	var strurl='imageUpload.asp?FolderName=' + FolderName
	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,'a',windowproperties)		
    newwindow.focus()

}
function ColorThemeChoose()
{
	var strurl='AdminColorThemePicker.aspx'
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=650,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 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'
}
else if (type == 'LinkSECTION') 
{
	var strurl='LinkCenterImageToSECTION.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()
}
function SelectDocument(intDocID)
		{

	var strurl = 'SelectDocument.asp?DocID=' + intDocID 
	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,intDocID,windowproperties)		
    newwindow.focus()
}
function UploadDocument(intDocID)
{
var strurl='UploadDocument.asp?DocID=' + intDocID
	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,intDocID,windowproperties)		
    newwindow.focus()
}

function PromotionsImageUpload(intPrID)
{
var strurl='PromotionsImageUpload.asp?PrID=' + intPrID
	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,intPrID,windowproperties)		
    newwindow.focus()
}

function LinkImageToPromotions(intPrID)
		{

	var strurl = 'LinkImageToPromotion.asp?PrID=' + intPrID 
	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,intPrID,windowproperties)		
    newwindow.focus()
}

function EditPromotionHTML(a,b)

//This function accepts PrID as a parameter.
{
	var strurl = 'AdminHTMLEditorNew.aspx?PrID=' + a + '&Section_ID=' + b
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
var windowproperties='width=780,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 EditPDHTML(a)

//This function accepts PrID as a parameter.
{
 	var strurl = 'AdminHTMLEditorNew.aspx?PD_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 EditNewsHTML(a,b)

//This function accepts NEWS_ID as a parameter.
{
	var strurl = 'AdminHTMLEditorNew.aspx?NEWS_ID=' + a + '&Section_ID=' + b
	var x = (screen.width - 600) -40
	var y =   10 //((screen.height -240))-10
	var windowproperties='width=780,height=500,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 CountryFlagUpload(intCountryKey)
{
var strurl='CountryFlagUpload.asp?intCountryKey=' + intCountryKey
	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,intCountryKey,windowproperties)		
    newwindow.focus()
}

function LinkFlagToCountry(intCountryKey)
{

	var strurl = 'LinkFlagToCountry.asp?intCountryKey=' + intCountryKey
	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,intCountryKey,windowproperties)		
    newwindow.focus()
}
