arrow = new Image();
arrow.src = "img/arrow_red.gif";

var nl = getNewLine()

function getNewLine() {
	var agent = navigator.userAgent

	if (agent.indexOf("Win") >= 0)
		return "\r\n"
	else
		if (agent.indexOf("Mac") >= 0)
			return "\r"

 	return "\n"

}

if(document.all) {} else {location.href="brCheck.htm"}




function transferDomain(){
alert("Instructions about transferring a domain\nare provided in the setup .exe")
}


function openScriptMenu(which){ 
sp = which.split(" ")
sp1=sp.join("")
sp2=sp1.split("%20")
sp3=sp2.join("")
if(location.href.indexOf("localhost")>=0) {
open("studio/welcome/wizards/scripts/scr_wizard.php?script="+sp1,"script","width=400,height=400,resizable=yes");
 } else {
open("wizards/scripts/scr_wizard.php?script="+sp1,"script","width=400,height=400,resizable=yes"); 
 }
} 
 
 

function domReg(){
q = confirm("If you don't have a top level domain (.com, .net, .org, .info,.biz  only) search \none at register.com and"+
" we'll register it for you FREE of charge! \n\nClick OK to search for a domain...don't buy it, just make sure it's \navailable and enter it in our sign up process.")
if(q==true) {open("http://www.register.com","_blank")}
}

/*
open('wizards/csswiz/stylewiz.hta','wiz','resizable=yes,width=500,height=400') 
open('wizards/mc/editor.hta','wiz','resizable=yes,width=500,height=400') 
open('wizards/search/websearch.hta','wiz','resizable=yes,width=500,height=400') 
open('wizards/igo/igo.hta','wiz','resizable=yes,width=500,height=400') 

*/

function sub(){
alert("Subscribers can select Studio Login below to access this wizard")
}
function getCSSWiz(){ 
document.disp.menu.value=1;
//sub()
q = confirm("This program requires Win 32 and IE6 to operate. \nUsing it is done entierly at your own risk and \nclicking OK signals your agreement to this.\n\nTo start click OK. At the next prompt click Open. \nThe program will open in a new window.")
if(q==true) open('http://today.webpage-wiz.com/wizards/csswiz/stylewiz.hta','wiz','resizable=yes,width=500,height=400') 

} 
 
function getMCWiz(){ 
//sub()
document.disp.menu.value=1;
q = confirm("This program requires Win 32 and IE6 to operate. \nUsing it is done entierly at your own risk and \nclicking OK signals your agreement to this.\n\nTo start click OK. At the next prompt click Open. \nThe program will open in a new window.")
if(q==true) open('http://today.webpage-wiz.com/wizards/mc/editor.hta','wiz','resizable=yes,width=500,height=400') 

} 
 
function getMSWiz(){ 
document.disp.menu.value=1;
//sub()
q = confirm("This program requires Win 32 and IE6 to operate. \nUsing it is done entierly at your own risk and \nclicking OK signals your agreement to this.\n\nTo start click OK. At the next prompt click Open. \nThe program will open in a new window.")
if(q==true) open('http://today.webpage-wiz.com/wizards/search/websearch.hta','wiz','resizable=yes,width=500,height=400') 

} 
 
function getIGOWiz(){ 
document.disp.menu.value=1;
//sub()
 location.href="http://today.webpage-wiz.com/software.php?product=igo";
} 
 
function getIGOAWiz(){ 
document.disp.menu.value=1;
//sub()
 location.href="http://today.webpage-wiz.com/software.php?product=happysnatch";
} 
 
 
function openTemplate(template,num){ 
//document.disp.menu.value=1;
 //open("studio/welcome/tpl_screen.php?site="+template+"&ref="+num,"tmp","width=400,height=430,resizable=yes"); 
open("http://today.webpage-wiz.com//tpl_screen.php?site="+template+"&ref="+num,"tmp","width=400,height=430,resizable=yes"); 

} 
 
 
function loadWebMail(){
val=document.admin.domain.value;
location.href="https://"+val+":2096";
}
function loadAdmin(){
val=document.admin.domain.value;
location.href="https://"+val+":2083";
}
function activeBtn(val){


if(val=="graden.com.au") {aBtn()} else
if(val=="opea.org.au") {aBtn()} else
if(val=="online-music-solutions.com") {aBtn()} else {bBtn()}

}
function aBtn(){

document.admin.da.disabled=false;
document.admin.wm.disabled=false;
}

function bBtn(){

document.admin.da.disabled=true;
document.admin.wm.disabled=true;
}


function sendPassword(email){  
if(email!="your@email.com") {
open("about:blank","getAccess","width=400,height=400,resizable=yes");
setTimeout("document.wiz_access.submit()",100); 
} else {alert("...this is not a valid address")}
} 
 
function searchGoogle(searchitems){ 
site9 = "http://www.google.com/search?q="      // * 
site9a =  site9 + searchitems + "&btnG=Google+Search"; 
open(site9a, "_blank"); 
} 
 
 
// this layer script works on IE4+ and NS6+ 
overColor = "#FFFFFF"; 
overColor1 = "#FFCC66"; 
outColor = ""; 
ie = document.all;  
 
 function controlMenu(name){ 
if(document.disp.menu.value==0) {
focus(); 
if(ie) { vis = eval(name+".style.display") } else { 
 mnu = document.getElementById(name); 
 vis = mnu.style.display 
 } 
 if(vis!="none") { 
 if(ie) {   eval(name+".style.display='none';");   } else {    mnu.style.display="none"; } 
  //eval("document."+frm+"."+button+".value='+'; "); 
 } 
else 
if(vis=="none") { 
 p = "inline" 
 if(ie) {   eval(name+".style.display='"+p+"';");   }  else {   mnu.style.display=p;  } 
  //eval("document."+frm+"."+button+".value='-'; "); 
  }
 } 
}  
 
function  viewStudioInfo(){  
if(document.all){ 
 open("tour/pg_studio_tour.htm","tour","height=458,width=772,scrollbars=no,resizable=yes") 
 } else { 
 open("tour/pg_studio_tour.htm","tour","height=453,width=772,scrollbars=no,resizable=yes") 
 } 
} 
 
function showScreen(){ 
pagecode = '<title>cPanel Screenshot</title>'+nl+ 
 '<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 marginheight=0 marginwidth=0><img src="tour/cPanel.gif">' 
i=window.open("","_blank","scrollbars=no,width=561,height=550,resizable=yes,location=no,statusbar=no,menubar=no"); 
i=i.document; 
i.write(pagecode); 
i.close(); 
} 

function bookmarkit(){ 
 
if (document.all){ 
 window.external.addFavorite(location.href,document.title); 
} else{ 
 alert("Press Ctrl + D to bookmark this page"); 
} 
} 

function mov(num){
if(num==1) { msg='Bookmark this page'}
if(num==2) { msg='Sign Up'}
if(num==3) { msg='Contact Us'}
if(num==4) { msg='Top of page'}
if(num==5) { msg='Support'}
if(num==6) { msg="The Design Sudio"   }
if(num==7) { msg="Wizards - They're FREE"   }
if(num==8) { msg="Templates in the Studio"   }
if(num==9) { msg="Web Space in the Studio"  }
if(num==10) { msg="HotlLinks"   }
if(num==11) { msg="Contact Webpage-Wiz.com"   }
if(num==12) { msg="Webpage-Wiz home"  }
if(num==13) { msg="Privacy Policy"  }
if(num==14) { msg="View a screenshot"  }
if(num==15) { msg="Limited Offer!!!"  }

window.status=msg;
return true
}

function mot(msg){
window.status="Webpage-Wiz.com";
}

function privacyPolicy(){ 
//open("http://today.webpage-wiz.com/privacy.htm","_blank","scrollbars=no,width=600,height=400,resizable=yes,location=no,statusbar=no,menubar=no"); 
open("privacy.htm","_blank","scrollbars=no,width=600,height=400,resizable=yes,location=no,statusbar=no,menubar=no"); 

} 
 
function termsOfUse(){ 
//open("http://today.webpage-wiz.com/terms.htm","_blank","scrollbars=no,width=600,height=400,resizable=yes,location=no,statusbar=no,menubar=no"); 
open("terms.htm","_blank","scrollbars=no,width=600,height=400,resizable=yes,location=no,statusbar=no,menubar=no"); 
} 

function openStudio(){
//open('http://today.webpage-wiz.com/studio.hta','wiz','resizable=yes,width=500,height=400') 
//open('studio.hta','wiz','resizable=yes,width=500,height=400') 
alert("This section is undergoing changes and will be available shortly")

}

function checkForm(){
f = document.sign;
//alert("checkForm\n\n"+f.userPlan.value+"\n"+f.userdomain.value)
f = document.sign;
if(f.userPlan.value !=1 && f.userdomain.value=="www.yourdomain.com") {
//alert("checkForm wrong")
q = confirm('You have selected a top level domain (TLD) plan\nhowever "www.yourdomain.com" is an example only.\n\nPlease enter a unique domain name.\n\nClick OK if you need to register a domain');
if(q==true) {
   open("http://www.register.com","_blank");
  }
 } else {
//alert("checkForm right")
  f.submit()
 }
}


function specialDeal(num){
if(num==1){ location.href="https://www.plimus.com/jsp/buynow.jsp?contractId=1636807";} else
if(num==2){ location.href="https://www.plimus.com/jsp/buynow.jsp?contractId=1630643";}else
if(num==3){ location.href="https://www.plimus.com/jsp/buynow.jsp?contractId=1636805";}else
if(num==4){ location.href="https://www.plimus.com/jsp/buynow.jsp?contractId=1636806";}

}

function goNet(frm){

ind = frm.netsites.selectedIndex;

if(ind==1) {open("http://www.email-wiz.com","_blank")} else
if(ind==2) {open("http://www.inboxpictures.com","_blank")} else
if(ind==3) {open("http://www.top100moneymakers.com","_blank")} else
if(ind==4) {open("http://www.thepublicvotes.com","_blank")} 

}



function checkTL(){
msg="TEMPLATE VIEWER:\n\nRequires IE4+ and Win32 to operate.\nUses ActiveX to enable template editing.\nHigh security settings will disable this feature.\n\n"+
	"Note: Windows XP and 2000 could be prompted\nfo install disks. "+
	"You may need them to operate the \nviewer. Win 98 and NT are OK to use now.\n\nLoad Template Viewer?..."
q = confirm(msg)
if(q==true){
 open('templateLoader.php','_blank','width=700, height=540,resizable=yes,scrollbar=no');
 }
}

