/********************************************************************************************/
/*********          New Account and Licensing data capture portal  *************************/
/*******************************************************************************************/
/* New Account:*/

//var NewAccount_message = "Goto New Account";
function RunNewAccount(){
	var winSiebel = window.open("https://webcache.gmc-uk.org/ecustomer_enu/start.swe?SWECmd=GotoView&SWEView=GMC+MyGMC+New+Account+View&SWEApplet=GMC+MyGMC+New+Account+Form+Applet","gmc_new_account","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
	winSiebel.opener = null;
	winSiebel = null;
	};
	
function RunForgotPassword(){
	var winSiebel = window.open("https://webcache.gmc-uk.org/ecustomer_enu/start.swe?SWECmd=GotoView&SWEView=GMC+MyGMC+Forgotten+Password+View&SWEApplet=GMC+WEB+MyGMC+Doctor+Forgotten+Password+Form+Applet","gmc_new_account","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
	winSiebel.opener = null;
	winSiebel = null;
	};

function RunExternalSurvey(){
	var winSiebel = window.open("https://webcache.gmc-uk.org/ecustomer_enu/start.swe?SWECmd=GotoView&SWEView=GMC+External+Doctor+Survey+View&SWEApplet=GMC+MyGMC+Doctor+External+Data+Capture+Form+Applet","gmc_smartscript_survey","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
	winSiebel.opener = null;
	winSiebel = null;
	};
	
function fnCheckBrowser(){
	blnResult = 0;
	bprops = navigator.userAgent;
	if (bprops.indexOf("Chrome")!=-1){
		var winSiebel = window.open("http://webcache.gmc-uk.org/gmclrmp_enu/chrome_guidance.html","_blank","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
		winSiebel.opener = null;
		winSiebel = null;
		blnResult = 1;
}



if (bprops.indexOf("Opera 8")!=-1){
	var winSiebel = window.open("https://webcache.gmc-uk.org/ecustomer_enu/opera_guidance.html","_blank","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
	winSiebel.opener = null;
	winSiebel = null;
	blnResult = 1;
	}
	return blnResult;
};

function RunMyGMC()
{
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var WinMyGMC = window.open("https://webcache.gmc-uk.org/ecustomer_enu/index.aspx","WinMyGMC","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840,height=600");
		WinMyGMC.opener = null;
		WinMyGMC.focus;
		WinMyGMC = null;
		}
	};

function RunWebForm()
{
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var WinWebForm = window.open("https://webcache.gmc-uk.org/ecustomer_enu/start.swe?SWECmd=GotoView&SWEView=GMC+MyGMC+Standard+Web+Enquiry+View&SWEApplet=GMC+WEB+MyGMC+Standard+Web+Enquiry+Form+Applet","WinWebForm","top=0,left=0,status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
		WinWebForm.opener = null;
		WinWebForm.focus;
		WinWebForm = null;
		}
};

function RunPLAB(){
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var winSiebel = window.open("https://webcache.gmc-uk.org/gmcplab_enu/start.swe","_blank","status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
		winSiebel.opener = null;
		winSiebel.focus;
		winSiebel = null;
   }

};

function RunNewUser()
{
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var WinNewUser = window.open("https://webcache.gmc-uk.org/ecustomer_enu/start.swe?SWECmd=GotoView&SWEView=GMC+MyGMC+User+Registration+Initial+Form+View&SWEApplet=GMC+MyGMC+User+Registration+Initial+Form+Applet","WinNewUser","top=0,left=0,status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=600");
		WinNewUser.opener = null;
		WinNewUser.focus;
		WinNewUser = null;
	}
};

function RunLRMP(){
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var winLRMP = window.open("http://webcache.gmc-uk.org/gmclrmp_enu/start.swe","_blank","top=0,left=0,status=1,toolbar=no,resizable=yes,dependent=no,scrollbars=yes,width=840 height=650");
		winLRMP.opener = null;
		winLRMP.focus;
		winLRMP = null;
		}
};
function RunCGS(){
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var WinMyGMC = window.open("http://webcache.gmc-uk.org/gmccgs_enu","WinCGS","top=0,left=0,status=1,toolbar=no,resizable=no,dependent=yes,scrollbars=yes,width=838,height=600");
		WinMyGMC.opener = null;
		WinMyGMC.focus;
		WinMyGMC = null;
		}
};

function RunCGSSearch(){
	blnChkBrwr = fnCheckBrowser();
	if (blnChkBrwr == 0){
		var WinMyGMC = window.open("http://webcache.gmc-uk.org/gmccgs_enu/start.swe?SWECmd=Login&_sn=p9qTlX-Cb4qfLLnLzApo1fii7CLhkJBrJ3qZnsar3HY_&SWEHo=webcache.gmc-uk.org&SWETS=1238752425","WinCGS","top=0,left=0,status=1,toolbar=no,resizable=no,dependent=yes,scrollbars=yes,width=838,height=600");
		WinMyGMC.opener = null;
		WinMyGMC.focus;
		WinMyGMC = null;
		}
};

