document.LoginSBForm.loginname.focus();
if (TransMenu.isSupported()) {
	TransMenu.updateImgPath('./');
	var ms = new TransMenuSet(TransMenu.direction.down, 0, 1, TransMenu.reference.bottomLeft);
	TransMenu.subpad_x = 0;
	TransMenu.subpad_y = 0;

 	
	
	var tmenu_domain_name = ms.addMenu(document.getElementById("domain_name"));
	
	tmenu_domain_name.addItem("My Domain Names", "http://webicalsolutions.com/shop/?sub=dcc&param=default.aspx?prog_id=451379", 0, 0);
	tmenu_domain_name.addItem("Domain Name Registration", "register-cheap-domain-names.html", 0, 0);
	tmenu_domain_name.addItem("Transfer Domains", "domain-name-transfers.html", 0, 0);
 	tmenu_domain_name.addItem("Bulk Domain Registration", "bulk-domain-registration.html", 0, 0);
	tmenu_domain_name.addItem("Bulk Transfer", "bulk-domain-transfers.html", 0, 0);
	tmenu_domain_name.addItem("Private Domain Registration", "private-domain-name-registration.html", 0, 0);
	tmenu_domain_name.addItem("Deluxe Domain Registration", "deluxe-domain-name-registration.html", 0, 0);
	tmenu_domain_name.addItem("Backorder Domains", "backorder-domain-names.html", 0, 0);
	tmenu_domain_name.addItem("Domain forwarding", "domain-name-forwarding.html", 0, 0);
	tmenu_domain_name.addItem("Business Registration", "business-domain-name-registration.html", 0, 0);
	 
	
	var tmenu_int_host_srv = ms.addMenu(document.getElementById("int_host_srv"));
	
	tmenu_int_host_srv.addItem("My Hosting Accounts", "http://webicalsolutions.com/shop/?sub=mya&param=products/accountlist.aspx?ci=3272&amp;product=hosting&amp;prog_id=451379", 0, 0);
	tmenu_int_host_srv.addItem("Compare Plans", "affordable-web-hosting.html", 0, 0);
	tmenu_int_host_srv.addItem("Economy Hosting", "economy-website-hosting-plan.html", 0, 0);
	tmenu_int_host_srv.addItem("Deluxe Hosting", "deluxe-domain-hosting-plan.html", 0, 0);
	tmenu_int_host_srv.addItem("Unlimited Hosting", "premium-web-hosting-packages.html", 0, 0);
	tmenu_int_host_srv.addItem("Virtual Web Hosting", "virtual-web-hosting.html", 0, 0);
	tmenu_int_host_srv.addItem("Dedicated Web Hosting", "dedicated-web-hosting-servers.html", 0, 0);
	tmenu_int_host_srv.addItem("Dedicated IP", "dedicated-ip-address.html", 0, 0);
	tmenu_int_host_srv.addItem("Traffic Facts", "web-site-stats.html", 0, 0);
	
	
	var tmenu_secure_ur_website = ms.addMenu(document.getElementById("secure_ur_website"));
	
	tmenu_secure_ur_website.addItem("My Websites", "http://webicalsolutions.com/shop/?sub=mya&param=sslcert/ssl.aspx?prog_id=451379", 0, 0);
	tmenu_secure_ur_website.addItem("Compare Plans", "build-your-own-website.html", 0, 0);
	tmenu_secure_ur_website.addItem("Online Photo Filer", "online-photo-storage.html", 0, 0);
	tmenu_secure_ur_website.addItem("Quick Blog", "quick-blog-software.html", 0, 0);
	tmenu_secure_ur_website.addItem("Shopping Cart Software ", "shopping-cart-software.html", 0, 0);
	
	
	var tmenu_personal_email_ac = ms.addMenu(document.getElementById("personal_email_ac"));
	
	tmenu_personal_email_ac.addItem("Search engine submission", "http://webicalsolutions.com/shop/?sub=idp&param=login.aspx?SPKey=SPMYAEB08&myaurl=%2fSiteBuilder%2fHostingAccountList.aspx&prog_id=451379&ci=1814&", 0, 0);
	tmenu_personal_email_ac.addItem("Email Marketing", "email-marketing-newsletters.html", 0, 0);
	tmenu_personal_email_ac.addItem("Email Accounts", "email-accounts.html", 0, 0);
	tmenu_personal_email_ac.addItem("Merchant Accounts", "merchant-accounts-accept-credit-cards.html", 0, 0);
	tmenu_personal_email_ac.addItem("SSL Certificates", "ssl-secure-certificates.html", 0, 0);	
	tmenu_personal_email_ac.addItem("Fax Through Email", "fax-through-email.html", 0, 0);
	
	 
	
	var tmenu_mrk_tool = ms.addMenu(document.getElementById("mrk_tool"));
	
	tmenu_mrk_tool.addItem("Website design services", "http://webicalsolutions.com/shop/?sub=mya&param=products/accountlist.aspx?prog_id=451379&amp;product=quickshoppingcart", 0, 0);
	tmenu_mrk_tool.addItem("Logo design", "http://webicalsolutions.com/shop/?sub=&param=gdshop/ecommerce/cart.asp?prog_id=451379", 0, 0);
	tmenu_mrk_tool.addItem("Print Design", "http://webicalsolutions.com/shop/?sub=&param=design/logo-design.aspx?prog_id=451379", 0, 0); 
	
	tmenu_mrk_tool.addItem("Web Banner Design Services", "http://webicalsolutions.com/shop/?sub=&param=gdshop/hosting/custom_banner.asp?prog_id=451379", 0, 0);
	
 	
	var tmenu_build_website = ms.addMenu(document.getElementById("build_website"));
	
	tmenu_build_website.addItem("Presidents Blog", "http://webicalsolutions.com/shop/?sub=mya&param=sitebuilder/hostingaccountlist.aspx?prog_id=451379", 0, 0);
	tmenu_build_website.addItem("Forum", "http://webicalsolutions.com/shop/?sub=&param=hosting/website-builder.aspx?prog_id=451379", 0, 0);
	tmenu_build_website.addItem("Affiliate Program", "webicalsolutions-affiliate-program.html", 0, 0); 
	tmenu_build_website.addItem("WSS in the news", "webicalsolutions-in-the-news.html", 0, 0);
	tmenu_build_website.addItem("Link to us", "link-to-webicalsolutions.html", 0, 0);
	
	var tmenu_build_website = ms.addMenu(document.getElementById("help_center"));
	
	tmenu_build_website.addItem("Support", "webicalsolutions-help-center.html", 0, 0);
	tmenu_build_website.addItem("Downloads", "http://webicalsolutions.com/shop/?sub=help&param=?isc=mddgd001b&se=%2B&prog_id=451379", 0, 0);
	tmenu_build_website.addItem("FAQ", "http://webicalsolutions.com/shop/?sub=help&param=?isc=mddgd001b&se=%2B&prog_id=451379", 0, 0); 
	
	
	
	 
	 

	TransMenu.renderAll();
}
init1=function(){TransMenu.initialize();}
if (window.attachEvent) {
	window.attachEvent("onload", init1);
}else{
	TransMenu.initialize();			
}

function pchj_login_action()
{
  	frm = document.LoginSBForm;
 	var error = new Array();
	var errorMessage = "";
	clear_spaces(frm);

	error[0] = isEmpty(frm.loginname) ? "Username is Empty" : ""; //Username is empty
	error[1] = isEmpty(frm.password) ? "Password is Empty" : ""; //Password is empty

	for(i= 0 ;i<error.length; ++i)
	{
		if(error[i]!=undefined)
		 {
			errorMessage+= error[i] != "" ? " * " +error[i]+"\n" : "";
			if(error[0] != ""){
			frm.loginname.focus();
			}
			else if(error[1] != ""){
			frm.password.focus();
			}
		}
	}
 	if(errorMessage == "")
	{
			 frm.submit();
			/*alert("submited");
			return false;*/
			
	}
	else
	{
	alert(errorMessage);
	return false;
	}
}

function clear_spaces(formName)
{
	var element_all =  formName.elements;
	var i;
	for(i=0;i<element_all.length;++i)
	{
			if (element_all[i].type == "text")
				element_all[i].value = trim(element_all[i].value);
	}
}/*----- Trim all the text boxes Only-----*/


// to check whether a text box or textarea is empty or not
function isEmpty(obj)
{
	isValid = false;
	if(trimLeftRightSpaces(obj)=="")
	 {
		isValid = true;
	 }
	 //obj.focus();
	 //alert(obj.value);
	return isValid; 
}

function trimLeftRightSpaces(obj)
{
	strToTrim = obj.value;
	strTrim = strToTrim.replace(/^(\s*)|(\s*)$/g,"");
	return(strTrim);
}
	
function trim(sStr)
{
   var s;
   sStr = sStr.toString();
   sStr = sStr.replace(/(^\s*)|(\s*$)/g,"");
   sStr = sStr.replace(/\s{2,}/g," "); /*----- Removes the unwanted spaces(more than one)-----*/
   return(sStr);
}/*---- Regular expression functions for clearing the spaces ----*/

function clearValueFor(getValue)
{
	frm = document.LoginSBForm;
	if(getValue==1)
	{
		frm.loginname.value = "";
	}
	else
	{
		frm.password.value = "";
	}
}

 
