
	var popupwin;
	function openFormPopup(url, winWidth, winHeight) {
		if (winWidth == null ) winWidth = 600;
		if (winHeight == null ) winHeight = 800;
		popupwin = window.open(url, "infoWin", "height=" + winHeight + ", width=" + winWidth + ", resizable=yes");
		if (window.focus) {popupwin.focus();}
	}

	function getSurvey(entsrc){
		change('survey_overlay','hidden');
		if (document.getElementById("contentPane1") !=null) {
			document.getElementById("contentPane1").style.zIndex=1;
		}			
		var thisurl = document.location.href;
		if(entsrc=='CED_pubweb') {
			entsrc=entsrc;	
		} else if (thisurl.indexOf("support/dtree.jsp") > -1) {
			entsrc='Direct_dtree';			
		} else if (thisurl.indexOf("support/index.jsp") > -1) {
			entsrc='Direct_index';			
		} else {
			entsrc='';	
		}

		var surveyURL = "https://www-secure.symantec.com/norton/support/survey_form.jsp?entsrc="+entsrc;
		if(document.domain.indexOf("uat.ges") > -1 || document.domain.indexOf("preview.ges") > -1) {
			surveyURL = "https://www-uat.ges.symantec.com/norton/support/survey_form.jsp?entsrc="+entsrc; //point to dev server suvey
		}
		if(document.domain.indexOf("dev.ges") > -1) {
			surveyURL = "http://www-dev.ges.symantec.com/norton/support/survey_form.jsp?entsrc="+entsrc; //point to dev server suvey
		}		
		
		openFormPopup(surveyURL,550,500);
	}

	function cancelSurvey(){
		change('survey_overlay','hidden');
		if (document.getElementById("contentPane1") !=null) {
			document.getElementById("contentPane1").style.zIndex=1;
		}		
	}
		
	function fixHeights(){
		try{
			MatchBlockHeight2('head1','head2','head3');
			setTimeout("longerTimeout2()", 10);
		}catch(err){}
	}			

	function longerTimeout2() {
		MatchBlockHeight('div1','div2','div3'); 
		setTimeout("longerTimeout3()", 10);
	}
	
	function longerTimeout3(){
		MatchBlockHeight2('head_pr_1','head_pr_2','head_pr_3'); 
		setTimeout("longerTimeout4()", 10);
	}
	
	function longerTimeout4() {
		MatchBlockHeight('body_pr_1','body_pr_2','body_pr_3'); 
	}

	function doMouseOverBox(divRef) {		
	   divRef.className='promoboxOver';
	   var head_id = divRef.childNodes[0].id;
	   if (head_id == null) head_id = divRef.childNodes[1].id;  // for Firefox
	   change(head_id, 'subhead_arrowOVR');
	}
			
	function doMouseOutBox(divRef) {
	   divRef.className='promobox';
	   var head_id = divRef.childNodes[0].id;
	   if (head_id == null) head_id = divRef.childNodes[1].id;  // for Firefox
	   change(head_id, 'subhead_arrow');           
	}

	function change(id, newClass) {
	    identity=document.getElementById(id);
	    identity.className=newClass;	
	
		if (id == "survey_overlay" && newClass == "shown"){
			trackCustomEvent2(identity, 'Survey present');
		}
	}
