//*************************************************************************************
//* © Copyright 1997, 1998, 1999, 2000, 2001 Peopleclick, Inc.
//* All rights reserved.
//*************************************************************************************

		



var iClickCtr=0;

document.onclick = processClicks;

function processClicks()
{
if (((window.event.srcElement.tagName=='IMG') && (window.event.srcElement.parentElement.tagName=='A')) || (window.event.srcElement.tagName=='A'))
 {
   if (iClickCtr>0)
   {
     window.event.returnValue=false;
   }
   iClickCtr+=1;
 }
}




function openCart()
{
	
	var scWindow = null;
	var vwindow;
	vwindow = window.open("/client_zurich/bu1/External_Pages/Shopping_Cart/shoppingcart.asp?SearchDirectory=Ext","scWindow","location=no,directories=no,scrollbars=yes,resizable=yes,width=600,height=500,center=yes,help=no");
	iClickCtr=0;
}


function openQuery(SkillType, FieldName) 
{
	//open a new toolbar-less window for the app to run in
	var iAppWidth = 360;
	var iAppHeight = 380;
	var window_left = (screen.width - iAppWidth)/2;
 	var window_top = (screen.height - iAppHeight)/2;
	
	var handle = window.open("QueryBox.asp?FieldName=" + FieldName + "&SkillType=" + SkillType,"Query","width=" + iAppWidth + ",height=" + iAppHeight + ",left=" + window_left + ",top=" + window_top +
		",resizable=no,toolbar=no,menubar=no,status=yes");
	
	return handle;
}

function apply()
{
	var URL = "Newcandidate.asp";
	var iQuestionMark, sQueryDelimiter
	window.opener.location = URL;
	iQuestionMark = window.location.href.indexOf("?");

	if (iQuestionMark >= 0)
	{
		sQueryDelimiter = "&";
	}
	else
	{
		sQueryDelimiter = "?";
	}
	window.location = window.location + sQueryDelimiter + "apply=no";
	
}
