// JavaScript Document

function get_cook(coknam) {
	coktxt = document.cookie+";";
	stano = coktxt.indexOf(coknam);
	if (stano != -1){
		endno = coktxt.indexOf(";",stano);
		txt0 = unescape(coktxt.substring(stano+coknam.length+1,endno));
	}else{
		txt0 = "";
	}
	return txt0;
}

function sav_cook(coknam) {
	txt0 = document.check['cookieon'].value;
	document.cookie = coknam+"="+escape(txt0)+";";
}
var qsParm = new Array();
 
function retrieveGETqs() {
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
		if (pos > 0) {
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			qsParm[key] = val;
		}
	}
}
function modoshi(no) {
	linkURL = "";
	retrieveGETqs();
	if(no==1){
		if(qsParm["page"]=="0"){linkURL='pharmaceutical/index.html';}
		if(qsParm["page"]=="1"){linkURL='pharmaceutical/product/index.html';}
		if(qsParm["page"]=="2"){linkURL='pharmaceutical/product/travatanz.html';}
		if(qsParm["page"]=="3"){linkURL='pharmaceutical/product/pata.html';}
		if(qsParm["page"]=="4"){linkURL='pharmaceutical/product/vegamox.html';}
		if(qsParm["page"]=="5"){linkURL='pharmaceutical/product/azopt.html';}
		if(qsParm["page"]=="6"){linkURL='pharmaceutical/product/betoptic.html';}
		if(qsParm["page"]=="7"){linkURL='pharmaceutical/product/betoptic_s.html';}
		if(qsParm["page"]=="8"){linkURL='pharmaceutical/product/iopidine.html';}
		if(qsParm["page"]=="9"){linkURL='pharmaceutical/product/bssplus.html';}
		if(qsParm["page"]=="10"){linkURL='pharmaceutical/product/provisc.html';}
		if(qsParm["page"]=="11"){linkURL='pharmaceutical/product/viscoelastics.html';}
		if(qsParm["page"]=="12"){linkURL='pharmaceutical/product/fluore.html';}
		if(qsParm["page"]=="13"){linkURL='pharmaceutical/product/photo/travatanz.html';}
		if(qsParm["page"]=="14"){linkURL='pharmaceutical/product/photo/pata.html';}
		if(qsParm["page"]=="15"){linkURL='pharmaceutical/product/photo/vegamox.html';}
		if(qsParm["page"]=="16"){linkURL='pharmaceutical/product/photo/azopt.html';}
		if(qsParm["page"]=="17"){linkURL='pharmaceutical/product/photo/betoptic.html';}
		if(qsParm["page"]=="18"){linkURL='pharmaceutical/product/photo/betoptic_s.html';}
		if(qsParm["page"]=="19"){linkURL='pharmaceutical/product/photo/iopidine.html';}
		if(qsParm["page"]=="20"){linkURL='pharmaceutical/product/photo/bssplus.html';}
		if(qsParm["page"]=="21"){linkURL='pharmaceutical/product/photo/provisc.html';}
		if(qsParm["page"]=="22"){linkURL='pharmaceutical/product/photo/viscoelastics.html';}
		if(qsParm["page"]=="23"){linkURL='pharmaceutical/product/photo/fluore.html';}
		if(qsParm["page"]=="24"){linkURL='pharmaceutical/guide/index.html';}
		if(qsParm["page"]=="25"){linkURL='pharmaceutical/guide/qa.html';}
		if(qsParm["page"]=="26"){linkURL='surgical/index.html';}
		if(qsParm["page"]=="27"){linkURL='cc/index.html';}
		if(qsParm["page"]=="28"){linkURL='support/index.html';}
		if(qsParm["page"]=="29"){linkURL='support/fs/index.html';}
		if(qsParm["page"]=="30"){linkURL='support/maintenance/index.html';}
		if(qsParm["page"]=="31"){linkURL='pharmacist/index.html';}
		if(qsParm["page"]=="32"){linkURL='pharmacist/2008/vol1.html';}
		if(qsParm["page"]=="33"){linkURL='pharmacist/2008/vol2.html';}
		if(qsParm["page"]=="34"){linkURL='pharmacist/2008/vol3.html';}
		if(qsParm["page"]=="35"){linkURL='information/index.html';}
		if(qsParm["page"]=="36"){linkURL='index.html';}
		if(qsParm["page"]=="37"){linkURL='surgical/retina/index.html';}
		if(qsParm["page"]=="38"){linkURL='surgical/cataract/index.html';}
		if(qsParm["page"]=="39"){linkURL='pharmaceutical/product/discovisc.html';}
		if(qsParm["page"]=="40"){linkURL='pharmaceutical/product/duotrav.html';}
		if(qsParm["page"]=="41"){linkURL='pharmaceutical/product/oharakishin.html';}
		if(qsParm["page"]=="42"){linkURL='pharmaceutical/product/timolol.html';}
		if(qsParm["page"]=="43"){linkURL='pharmaceutical/product/photo/discovisc.html';}
		if(qsParm["page"]=="44"){linkURL='pharmaceutical/product/photo/duotrav.html';}
		if(qsParm["page"]=="45"){linkURL='pharmaceutical/product/photo/oharakishin.html';}
		if(qsParm["page"]=="46"){linkURL='pharmaceutical/product/photo/timolol.html';}
		if(qsParm["page"]=="47"){linkURL='pharmaceutical/product/photo/timolol2.html';}
		if(qsParm["page"]=="48"){linkURL='pharmaceutical/product/photo/provisc_2.html';}
		if(qsParm["page"]=="49"){linkURL='pharmaceutical/product/photo/provisc_3.html';}
		if(qsParm["page"]=="50"){linkURL='pharmacist/2008/vol4.html';}
		if(qsParm["page"]=="51"){linkURL='pharmacist/2008/vol5.html';}
		if(qsParm["page"]=="52"){linkURL='pharmaceutical/product/photo/bssplus_2.html';}
	}
	else if(no==2){
		location.href=qsParm["referrer"];
	}
}
function check(coknam) {
	cookie1 = "";
	cookie1 = get_cook('cookie1');
	if(cookie1=="alconhcpok"){}
	//else{location.href='/hcp/check.html?page='+coknam+"&referrer="+encodeURI(document.referrer);}
	else{location.href='/hcp/check.html?page='+coknam+"&referrer="+document.referrer;}
}