

function btover(btnval) {
filename='images/navbtn/'+btnval+'OVER.gif';
overim='IMAGE'+btnval+'OVER';
document.images[btnval].src=filename;
}



function btdown(btnval) {
filename='images/navbtn/'+btnval+'DOWN.gif';
document.images[btnval].src=filename;
}

function btmain(btnval) {
filename='images/navbtn/'+btnval+'MAIN.gif';
document.images[btnval].src=filename;
}



///////////// DOMAIN FUNCTIONS


function blockEnter(ent) {

if (ent==13) {
alert ("Please press the plus sign, or tab key to confirm quantity inforamtion. Thank you.");
return false;

}
}


function convertDomain() {
first=aud.first.value;
second=aud.second.value;
combine=first+second;
aud.domain.value=combine;
}

function popuplNIC() {
var locationa= "http://sitesource.totalnic.net.au/fullrego_au.cgi?do=regdom_au2&domain="+aud.domain.value+"&realaffiliatename=SiteSource";
window.open(locationa,"","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}

function convertDomainAUS() {
first=auus.first.value;
second=auus.second.value;
combine=first+second;
auus.domain.value=combine;
}

function popuplNICus() {
window.open("","NICWIN","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}

function convertDomainUS() {
first=auus2.first.value;
second=auus2.second.value;
combine=first+second;
auus2.domain.value=combine;
}

function popuplNICus2() {
window.open("","NICWIN","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}

var locationb='http://SiteSource.totalnic.net.au';
var locationc='http://SiteSource.InternetNameRegister.net';


function auTrans() {
window.open("http://sitesource.totalnic.net.au/fullrego.cgi?do=transreqn1&raf=SiteSource","NICWIN","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}


function auManage() {
window.open("http://sitesource.totalnic.net.au","NICWIN","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}

function usTrans() {
window.open("http://Sitesource.internetnameregister.net/fullrego.cgi?do=brandtrans1","NICWIN","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}


function usManage() {
window.open("http://sitesource.internetnameregister.net","NICWIN","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}




/////////// HOSTING SITE LINK

function info() {
window.open("http://sitesource.info","","scrollbars=yes,height=400,width=800,scrolling,resizable=yes");
}

function propper() {
window.open("http://www.propersupport.com","","scrollbars=yes,height=400,width=800,scrolling,resizable=yes");
}


/////////// HARDWARE ORDERS



////////// MARKETING LINKS

function freemail() {
window.open('http://registernet.passport.net/reg.srf','','scrollbars=yes,height=400,width=522,scrolling,resizable=yes');
}

function market3() {
window.open('http://www.clixGalore.com/Sale.aspx?BID=9189&AfID=56987&AdID=1413','','scrollbars=yes,height=400,width=782,scrolling,resizable=yes');
}

function market2() {
window.open('http://www.searchengineblaster.com/cgi-bin/a/clickthru.cgi?id=wembly8614','','scrollbars=yes,height=400,width=650,scrolling,resizable=yes');
}





///////////////////////  FORM SUBMISSION CHECKS



function checkArea1(trans){

var info=trans.value;

    if (info.length > 200){
        alert("Please reduce the size of your comments. They are too long to be processed.");
       	trans.focus();
       	trans.select();
    }
 //   return true;
}


function addFavourite(atag) {

agnt=navigator.userAgent.toLowerCase();

if (agnt.indexOf("msie") != -1) {

if (atag=="WebDev") {
atag="SiteSource - Web Sites that Work";
window.external.AddFavorite('http://www.sitesource.com.au',atag);
} else {
locators=document.URL;
atag="SiteSource - "+atag;
window.external.AddFavorite(locators,atag);
}

 } else {

if (atag=="DraftOrder") {
alert ("Simply bookmark this page to store your order, and return when you like. Prices will update automatically if changed.");
} else {
alert ("Auto storage is not supported by your browser. After we return you, please simply bookmark it.");
window.location='http://www.sitesource.com.au';
}

 }

} 




//////   PAYMENT GATEWAYS






function gatewayReg(field) {
locator="includes/gatewaysignup.php?ref="+field;
window.open(locator,"accessor","scrollbars=yes,height=400,width=502,scrolling,resizable=yes");
}



function pay1() {
window.open('http://www.2checkout.com/cgi-bin/aff.2c?affid=73481','','scrollbars=yes,height=400,width=800,scrolling,resizable=yes');
}

function pay2() {
window.open('https://secure.worldpay.com/app/application.pl?brand=affiliate&companyId=58338','','scrollbars=yes,height=400,width=790,scrolling,resizable=yes');
}

function pay2a() {
window.open('https://secure.worldpay.com/app/splash.pl?Pid=58338','','scrollbars=yes,height=400,width=790,scrolling,resizable=yes');
}



function checkLInfo(data) {

var ipaddress=access.ipinfo.value;

	
    if (access.fname.value.length ==""){
        alert("Please enter your first name. (Proxy IP "+ipaddress+" recorded.)");
       	access.fname.focus();
       	access.fname.select();
	return false;
    }

    if (access.lname.value.length ==""){
        alert("Please enter your last name. (Proxy IP "+ipaddress+" recorded.)");
       	access.lname.focus();
       	access.lname.select();
	return false;
    }

    if (access.bname.value.length > 0){
	
    	if (access.abn.value.length < 11){
        alert("Businesses must also enter their ABN. (Proxy IP "+ipaddress+" recorded.)");
       	access.abn.focus();
       	access.abn.select();
	return false;
	}
    }

    if (access.phone.value.length < 6){
        alert("You must enter your daytime contact number. (Proxy IP "+ipaddress+" recorded.)");
       	access.phone.focus();
       	access.phone.select();
	return false;
    }


    if (access.address1.value.length < 2){
        alert("We need your address. (Proxy IP "+ipaddress+" recorded.)");
       	access.address1.focus();
       	access.address1.select();
	return false;
    }

    if (access.suburb.value.length < 2){
        alert("Your suburb please. (Proxy IP "+ipaddress+" recorded.)");
       	access.suburb.focus();
       	access.suburb.select();
	return false;
    }

    if (access.pcode.value.length < 4){
        alert("Your post code please. (Proxy IP "+ipaddress+" recorded.)");
       	access.pcode.focus();
       	access.pcode.select();
	return false;
    }

    if (access.email.value.length < 8){
        alert("We need a valid email address. (Proxy IP "+ipaddress+" recorded.)");
       	access.email.focus();
       	access.email.select();
	return false;
    }

    if (access.domain.value.length < 5){
        alert("You require a registered domain to have a gateway. (Proxy IP "+ipaddress+" recorded.)");
       	access.domain.focus();
       	access.domain.select();
	return false;
    }

    if (access.bank.value.length < 3){
        alert("You must have a merchant account with an Australian acquiring bank to purchase a gateway plan. (Proxy IP "+ipaddress+" recorded.)");
       	access.bank.focus();
       	access.bank.select();
	return false;
    }

 return true;
}


