function bookmarksite(title, url){
if (document.all)
 window.external.AddFavorite(url, title);
else if (window.sidebar)
 window.sidebar.addPanel(title, url, "")
}



var agt=navigator.userAgent.toLowerCase();
var is_safari = agt.indexOf("safari")!=-1;
var n = navigator.userAgent;
function mainovr(div,name,status){
	if(is_safari){
		bHover=name; Act(div,name,false);window.status=status;}
	else{
		bHover=name;window.status=status;setTimeout('Act(\'' + div + '\', \'' + name + '\', false)',400);}
}
function findDiv(n, d) { 
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findDiv(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function tNav() { 
	var i,p,v,obj,args=tNav.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findDiv(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    if(v=='visible')setPosition(args[i]);    
    obj.visibility=v;} 
}
function hde(sect) {
  tNav('home','','hide');tNav('dom','','hide');tNav('host','','hide');tNav('sslhdr','','hide');tNav('em','','hide');tNav('eco','','hide');tNav('webs','','hide');showElement('SELECT');
}
function hideDD(sect) {
  tNav(sect,'','hide');hde(sect);
}
var secSet = null;
var activeTimer = null;
var bHover = '';
function Act(sect, windowStatusVal, bshow) {
	hde(sect);
	if ((bHover==windowStatusVal)||(bshow)){		
		tNav(sect,'','show');
		if (secSet != null) window.clearTimeout(secSet);		
		hideElement('SELECT', document.all[sect]); 
	}
}
function setPosition(sect)
{
  var obj, objstyle, overobj, len=0;
  overobj=findDiv(sect+"_td");
  obj=findDiv(sect);
  if (eval(overobj.offsetLeft+obj.offsetWidth) > overobj.offsetParent.offsetWidth){
	len = eval(overobj.offsetLeft+obj.offsetWidth)-overobj.offsetParent.offsetWidth;}
  if (obj.style) { objstyle=obj.style;
	if(/MSIE/.test(n)) {
	  objstyle.left = overobj.offsetLeft-len - 390 + "px";
	} else {
	  objstyle.left = overobj.offsetLeft-len + "px";
	}
  }
}
function Tim(sect){
	if (secSet != null) window.clearTimeout(secSet);
	secSet = window.setTimeout('hideDD("' + sect + '")',500);
}

function hideElement( elmID, overDiv ) {
  if(document.all) {
    for(i = 0; i < document.all.tags( elmID ).length; i++) {
      obj = document.all.tags( elmID )[i];
      if(!obj || !obj.offsetParent) continue;
      // Find the element's offsetTop and offsetLeft relative to the BODY tag.
      objLeft   = obj.offsetLeft - overDiv.offsetParent.offsetLeft;
      objTop    = obj.offsetTop;
      objParent = obj.offsetParent;
      while(objParent.tagName.toUpperCase() != 'BODY') {
        objLeft  += objParent.offsetLeft;
        objTop   += objParent.offsetTop;
        objParent = objParent.offsetParent;}
      objHeight = obj.offsetHeight;
      objWidth  = obj.offsetWidth;            
      if((overDiv.offsetLeft + overDiv.offsetWidth) <= objLeft);
      else if((overDiv.offsetParent.offsetTop + overDiv.offsetHeight + 50) <= objTop);
      else if(overDiv.offsetTop >= eval(objTop + objHeight));
      else if(overDiv.offsetLeft >= eval(objLeft + objWidth));
      else {
        obj.style.visibility = 'hidden';
      }
    }
  }
}

function showElement(elmID) {
  if(document.all) {
    for(i = 0; i < document.all.tags( elmID ).length; i++) {
      obj = document.all.tags(elmID)[i];
      if(!obj || !obj.offsetParent) continue;
      obj.style.visibility = '';
    }
  }
}

function openMoralPopup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/popup.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&display=moral&ci=1441', 'display2', 'left=50,top=50,resizable=yes,scrollbars=yes,width=300,height=300');
}

function popFaq(article_id){
	var faqurl = 'http://help.securepaynet.net/article.php?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&article%5Fid=fff';
	faqurl = faqurl.replace('fff', article_id);
	var win=window.open(faqurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');
}


function openURLpopup(winName, strURL) {
	var win=window.open(''+strURL+'', ''+winName+'', 'left=50,top=50,resizable=yes,scrollbars=yes,width=480,height=500');
}

function popPage(pagename, cici, progid, apphdr){
	var pgurl = 'se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&ci=cici';
	pgurl = pgurl.replace('cici', cici);
	if (progid != '') pgurl = pgurl.replace('mkralj', progid);
	if (apphdr != '') pgurl = pgurl.replace('hdr=0', 'hdr=' + apphdr);
	if (pagename.indexOf('?') <= 0){
		pgurl = '?' + pgurl}
	else{
		pgurl = '&' + pgurl}
	if ((pagename.indexOf('http://') < 0)&&(pagename.indexOf('https://') < 0)){
		pgurl = ('https://www.securepaynet.net/gdshop/' + pagename + pgurl);}
	else{
		pgurl = (pagename + pgurl);	}
	var win=window.open(pgurl, 'spop', 'left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620');
}

function openDeluxeBusiness()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/deluxe_business.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=5559', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=509,height=296');
}
function openDeluxeMap()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/deluxe_map.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=5559', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=520,height=530');
}

function popFaqTopic(topic_id){
	var faqurl = 'http://help.securepaynet.net/article_list.php?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&topic%5Fid=fff';
	faqurl = faqurl.replace('fff', topic_id);
	var win=window.open(faqurl, 'spop');
}

function popFaqTopic2(topic_id){
	var faqurl = 'http://help.securepaynet.net/topic_list.php?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&topic%5Fid=fff';
	faqurl = faqurl.replace('fff', topic_id);
	var win=window.open(faqurl, 'spop');
}

function openEncryptionPopup()
{
	
	var win=window.open('http://products.secureserver.net/products/ssl_encryptionstrength.htm', 'display2', 'width=650,height=500,left=50,top=50,resizable=yes,scrollbars=yes');
	
}

function openWarrantyPopup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/popup.asp?se=%2B&prog%5Fid=mkralj&ci=5260&display=warranty', 'display1', 'left=50,top=50,resizable=yes,scrollbars=yes,width=350,height=200');
}

function openHASSLPopup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/ssl_seal.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&ci=5264&display=ssl2', 'display2', 'left=50,top=50,resizable=yes,scrollbars=yes,width=280,height=220');
}

function openTurboSSLPopup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/ssl_seal.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=5262&display=ssl1', 'display2', 'left=50,top=50,resizable=yes,scrollbars=yes,width=280,height=200');
}


function openDomainDealPopup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/domaindeal.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99', 'domaindealwin', 'left=50,top=50,resizable=yes,scrollbars=yes,width=430,height=280');
}

function openPractical()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/practical_ecommerce.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=4448', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=420,height=240');
}

function openCCProcess()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/online_cc_process.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=6278', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=670,height=630');
}

function openPop3Popup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/purchase_source_code.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=&display=pop3&ci=1350', 'display2', 'left=50,top=50,resizable=yes,scrollbars=yes,width=410,height=200');
}

function openHelpCenterPopup(lnk)
{
	
	if (win && win.closed == false)
	{
		win.focus();
	}
	else
	{
		win=window.open(lnk, 'helpcenter', '');
	}
}

function ShowScreenShot(image)
{
	window.open('https://www.securepaynet.net/gdshop/hosting/stats_compare.asp?se=%2B&app%5Fhdr=99&prog%5Fid=mkralj&ci=5504&image=' + image, 'display1', 'left=200,top=200,resizable=yes,width=500,height=600');
}

function openEVSSLPopup()
{
	var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/ssl_seal.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=7727&display=ssl3', 'display2', 'left=50,top=50,resizable=yes,scrollbars=yes,width=280,height=220');
}

function openGoogleAdWords()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/reseller_words.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=3246', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=620,height=500');
}

function openMicrosoftAdCenter()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/adCenter.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99&ci=8846', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=620,height=500');
}

function openDBPFreePopup()
{
var win=window.open('https://www.securepaynet.net/gdshop/jump_pages/dbp_free.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=99', 'dbp_free', 'left=50,top=50,resizable=yes,scrollbars=yes,width=480,height=190');
}

function checkDomain(searchForm)
	{
		var canSubmit = false;
		var searchValue;
		if (searchForm.domainToCheck)
		{
			searchValue = searchForm.domainToCheck.value;
			if (searchValue != '')
			{
				var regExInvalidChars = /[^a-zA-Z0-9-\s.]+/;
				if (regExInvalidChars.test(searchValue))
				{
					alert('Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.')
				}
				else
				{
				canSubmit = true;
				}
			}
			if (searchValue.length == 0)
			{
				alert('Please enter a domain name.')
			}
		}
		if (canSubmit) 
		{
			return true;
		}
		else
		{
			return false;
		}
	}

function openCSSSamplesPopup()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/wst_css_samples.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&ci=7145', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=600,height=600');
}

function openColorCustomizerPopup()
{
	window.open('https://www.securepaynet.net/gdshop/jump_pages/wst_color_customizer.asp?se=%2B&prog%5Fid=mkralj&app%5Fhdr=0&ci=0', 'display', 'left=20,top=20,scrollbars=yes,resizable=yes,width=600,height=600');
}

