		var Xmouse=200;
		var Ymouse=0;
		var preloadFlag = false;

		var ns4=document.layers
		var ns6=document.getElementById&&!document.all
		var ie4=document.all
		var opr=navigator.userAgent.indexOf("Opera")

		//document.onmousemove=get_mouse;

		function get_mouse2(e) {
			var Xmouse=1000; //(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft; 
			var Ymouse=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop; 
		}

    function noBack() {
      //window.history.forward();
    }
    
    function popup(pageToLoad, winName, width, height, center, title, menu, toolbar, location, status, resize, scrollbars) {
        //get name of the frame i'm currently in, if any. 
        xposition=0; yposition=0;
        if (parseInt(navigator.appVersion) >= 4 ) {
						if(center){
            	xposition = (screen.width - width) / 2;
	            yposition = (screen.height - height) / 2;
						} else {
							xposition = Xmouse-(width/2);
							yposition = Ymouse+(height/2);
						}
        }
        args = "width=" + width + "," + "height=" + height + "," + "location=" + location + "," + "menubar=" + menu + "," + "resizable=" + resize + "," + "scrollbars=" + scrollbars + "," + "status=" + status + "," + "titlebar=" + title + "," + "toolbar=" + toolbar + "," + "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition;
				window.open(pageToLoad, winName, args);
    }	
	
    function showCDC(vCreative, vPlacement) {
      if(vPlacement=='') vPlacement = '" & mobjApplication("client_id") & "'; 
      if (vCreative=='LeftNavbar') { 
        popup('http://talentology.careerperfect.com/CareerPerfect/resumeServices.htm?creative='+vCreative+'&placement='+vPlacement,'cdc',740,650,1,'',0,0,0,1,1,1);
      } else {
        popup('http://talentology.careerperfect.com?creative='+vCreative+'&placement='+vPlacement,'cdc',740,650,1,'',0,0,0,1,1,1);
      }
    }
    
    function newImage(arg) {
        if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
        }
    }

    function changeImages() {
        if (document.images && (preloadFlag == true)) {
            for (var i=0; i<changeImages.arguments.length; i+=2) {
                document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
            }
        }
    }

    function preloadImages() {
        if (document.images) {
            //home_over = newImage('images/menu/home-hot.gif');
            //profile_over = newImage('/images/menu/profile-hot.gif');
            //searches_over = newImage('/images/menu/searches-hot.gif');
            //messages_over = newImage('/images/menu/messages-hot.gif');
            //favorites_over = newImage('/images/menu/favorites-hot.gif');
            //summary_hot = newImage('/images/menu/summary-hot.gif');
            //contact_hot = newImage('/images/menu/contact-hot.gif');
            //educate_hot = newImage('/images/menu/educate-hot.gif');
            //industry_hot = newImage('/images/menu/industry-hot.gif');
            //skills_hot = newImage('/images/menu/skills-hot.gif');
            //workexp_hot = newImage('/images/menu/work-exp-hot.gif');
            //objectives_hot = newImage('/images/menu/objectives-hot.gif');
            //cert_hot = newImage('/images/menu/cert-hot.gif');
            //pref_hot = newImage('/images/menu/pref-hot.gif');
            //attach_hot = newImage('/images/menu/attach-hot.gif');
            //complete_hot = newImage('/images/menu/complete-hot.gif');
            //feedback_hot = newImage('/images/menu/feedback-hot.gif');
            //help_hot = newImage('/images/menu/help-hot.gif');
            //logoff_hot = newImage('/images/menu/logoff-hot.gif');
            //add_hot = newImage('/images/menu/add-hot.gif');
            //edit_hot = newImage('/images/menu/edit-hot.gif');
            //cart_hot = newImage('/images/menu/cart-hot.gif');
            //company_hot = newImage('/images/menu/company-hot.gif');
            preloadFlag = true;
        }
    }
	
	////////////////////////////////////////////////////////////////////////////////////////////
	// TimeOut Popup Functions
	// Wojo - April 19, 2007
	var TimeoutSeconds;
	var TimeoutIntervalID;
	var TimeoutInquiryID;
	var TimeoutInterval;
	var TimeoutStopped = false;

	function TimeOutReset() {
		if (!TimeoutStopped) {
			window.clearInterval(TimeoutIntervalID);
			TimeoutIntervalID = window.setInterval("FireTimeoutWarning()", TimeoutSeconds * 1000);
		}
	}

	function TimeOutStop() {
		TimeoutStopped = true;	
		window.clearInterval(TimeoutIntervalID);
	}	
	
	function InitializeTimeoutWarning(warningSeconds, inquiryID) {
		// reset timeout if there is action from the user
		document.onclick = TimeOutReset;
		document.onkeyup = TimeOutReset;
			
		TimeoutInquiryID = inquiryID;
		TimeoutSeconds = warningSeconds;
		TimeoutIntervalID = window.setInterval("FireTimeoutWarning()", warningSeconds * 1000);
	}
	
	function FireTimeoutWarning() {
		var windowWidth = 0, windowHeight = 0;
		var objCover = document.getElementById("inactiveCover");
		var objDialog = document.getElementById("timeoutDialog");
		
		// bring this winodow to the top
		window.focus();			
		
		// put the gray cover on the screen
		if (document.body.style.overflow = "hidden") {
			objCover.style.left = 0;
			objCover.style.top = 0;
			objCover.style.width = screen.width;
			objCover.style.height = "100%"
		}
		objCover.style.display = "block";
		
		// display timeout popup
		if( typeof(window.innerWidth) == 'number' ) {		
			windowWidth = window.innerWidth; windowHeight = window.innerHeight;
		} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight;
		} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
			windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight;
		}
    		
		objDialog.style.left = (windowWidth - 400) / 2;
		objDialog.style.top = (windowHeight - 200) / 2;		
		objDialog.style.display = "block";
				
		// load the frame with the content
		window['timeoutDialogFrame'].location.href = '/common/misc.asp?action=doTimeoutDialog&InquiryID=' + TimeoutInquiryID;		
		window.clearInterval(TimeoutIntervalID);		
	}	

	function StartTimeoutWarning(warningSeconds, inquiryID) {
		TimeoutInterval = warningSeconds;
		TimeoutInquiryID = inquiryID;
		UpdateTimeoutWarning();	
		TimeoutIntervalID = window.setInterval("UpdateTimeoutWarning()", 1000);
	}
	
	function UpdateTimeoutWarning() {
		var objUpdate = document.getElementById("txtUpdate")
		var secondsLeft = TimeoutInterval;
		var minutesLeft = '';
		
		// handle minutes
		if (secondsLeft > 60) {
			minutesLeft = Math.floor(secondsLeft / 60);
			if (minutesLeft == 1) minutesLeft = minutesLeft + ' minute'		
			else if (minutesLeft > 1) minutesLeft = minutesLeft + ' minutes'		
			secondsLeft = secondsLeft % 60;
		}
		if (secondsLeft == 1) secondsLeft = secondsLeft + ' second'		
		else if (secondsLeft > 1) secondsLeft = secondsLeft + ' seconds'	
		else secondsLeft = '';
		
		// update counter
		objUpdate.innerHTML = 'Session will expire in ' + minutesLeft + ' ' + secondsLeft;
		
		// if timer runs out of time redirect main page to expired message
		if (minutesLeft == '' && secondsLeft == '') {
			window.top.location.href = '/common/misc.asp?action=doTimeoutExpired&InquiryID=' + TimeoutInquiryID;
			window.clearInterval(TimeoutIntervalID);
		}
		
		TimeoutInterval--;
	}
	
	function TimeOutContinue() {
		var objCover = document.getElementById("inactiveCover");
		var objDialog = document.getElementById("timeoutDialog");
		objCover.style.display = "none";
		objDialog.style.display = "none";
		document.body.style.overflowY = "scroll"
		InitializeTimeoutWarning(TimeoutSeconds, TimeoutInquiryID);	
	}

	function TimeOutContinuePopup() {
		window.top.TimeOutContinue();	
	}

	
	function TimeOutFinishLater() {
		window.top.location.href = '/common/misc.asp?action=doFinishLater&InquiryID=' + TimeoutInquiryID;
	}
	
	function RegistrationFinishLater(altInquiryID) {
		if(altInquiryID!='') TimeoutInquiryID = altInquiryID;
		if(confirm('Are your sure you wish to finish this application at later time?\r\rClick the OK button and we will send you a message via email allowing you to come back and finish this application.\rClick the Cancel button to continue.')) { 
			window.location.href = '/common/misc.asp?action=doFinishLater&InquiryID=' + TimeoutInquiryID;
		}
	}
	
	////////////////////////////////////////////////////////////////////////////////////////////
	// BadOID Popup Functions
	// Wojo - July 17, 2007
	
	var BadURL = '';
	
	function FireAlertDialog(vType, vTitle) {
		var windowWidth = 0, windowHeight = 0;
		var objCover = document.getElementById("inactiveCover");
		var objDialog = document.getElementById("alertDialog");
		
		// bring this winodow to the top
		window.focus();			
		
		// put the gray cover on the screen
		if (document.body.style.overflow = "hidden") {
			objCover.style.left = 0;
			objCover.style.top = 0;
			objCover.style.width = screen.width;
			objCover.style.height = "100%"
		}
		objCover.style.display = "block";
		
		// display timeout popup
		if( typeof(window.innerWidth) == 'number' ) {		
			windowWidth = window.innerWidth; windowHeight = window.innerHeight;
		} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight;
		} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
			windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight;
		}
    		
		objDialog.style.left = (windowWidth - 400) / 2;
		objDialog.style.top = (windowHeight - 200) / 2;
		objDialog.style.width = 400;		
		objDialog.style.display = "block";
				
		// load the frame with the content
		window['alertDialogFrame'].location.href = '/common/misc.asp?action=doAlertDialog&alert=' + vType + '&Title=' + vTitle + '&URL=' + BadURL;				
	}	