var transparentImage = "images/transparent.gif";

function fixTrans()
{
	if (typeof document.body.style.maxHeight == 'undefined') {

	var imgs = document.getElementsByTagName("img");
	
	for (i = 0; i < imgs.length; i++)
	{	
		if (imgs[i].src.indexOf(transparentImage) != -1)
		{
			return;
		}

		if (imgs[i].src.indexOf(".png") != -1)
			{
				var src = imgs[i].src;
				imgs[i].src = transparentImage;
				imgs[i].runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
			}
		}	
	}
}

if (document.all && !window.opera)
	attachEvent("onload", fixTrans);
	
function checkLen(x,y)
{
	if (y.length==x.maxLength)
    {
    	var next=x.nextSibling.nextSibling;

   		if (next)
        {
            next.focus()
        }
    }
}

function showHelp(){
	window.open("../help.jsp", "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=600'); 
}

function showCustomerSupport(){
	window.open("../customerSupport.jsp", "_popup", 'resizable=no,scrollbars=no,status=no,titlebar=no,width=450,height=200');
}


function showTermsAndConditions(){
	window.open("../termsConditions.jsp", "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=600'); 
}

function showPrivacyAndPolicy(){
	window.open("../privacyPolicy.jsp", "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=480'); 
}

function show24_7Help(){
	window.open("../24_7help.jsp", "_popup", 'resizable=no,scrollbars=no,status=no,titlebar=no,width=450,height=200');
}

function simpleSubmit(formName){
	eval("document." + formName + ".submit()");
}




	