﻿<!--

function changeImages_Common() {
    
    //Get current page
    var path = window.location.pathname
    //var url = window.location.protocol + "//" + window.location.host + path.substring(0, path.lastIndexOf('/') + 1);
   var url = ""
    if (window.location.hostname == "localhost")
    {
        url = window.location.protocol + "//" + window.location.host + "/laundryladycleaners/";
    }
    else
    {
        url = window.location.protocol + "//" + window.location.host + "/";
    }
    //alert(url);

    var pageName = path.substring(path.lastIndexOf('/') + 1);
    var pageID = pageName.substring(0,pageName.lastIndexOf('.'));
    //alert(pageID)
    //alert(arguments[0])
    if (pageID == arguments[0]) {
        //return true;
    }

    if (document.images) {
	    for (var i=0; i<changeImages_common.arguments.length; i+=2) {
		    //document[changeImages_common.arguments[i]].src = changeImages_common.arguments[i+1];
		    //alert(document[changeImages_common.arguments[i]].src);
		    //document[changeImages_common.arguments[i]].src = "images/common/"+changeImages_common.arguments[i+1];
		    document[changeImages_common.arguments[i]].src = url + "images/common/"+changeImages_common.arguments[i+1];
	    }
    }
}

function displayDocuemnt(urlPath,props,height,width)
{
	var windowName = "document";
	var agent = navigator.userAgent;
	var winProps;

	switch (props)
	{
	case 0:
		winProps = "toolbar=0,menubar=0,location=0,scrollbars=1,status=0,resizable=1,titlebar=0,height="+height+",width="+width+",top=50,left=50"
		break;
	default:
		winProps = "toolbar=0,menubar=0,location=0,scrollbars=1,status=0,resizable=1,titlebar=0,height=400,width=600,top=50,left=50"
		break;
	}

	windowName = open(urlPath,windowName,winProps).focus();
}

function ShowLogin()
{
    document.getElementById('login01').style.display = 'inline';
    document.getElementById('login01').style.visibility = 'visible';
}

function HideLogin()
{
    document.getElementById('login01').style.display = 'none';
    document.getElementById('login01').style.visibility = 'hidden';
}


function Focus(objname) {
    if (document.getElementById('txt' + objname).value == '') {
        document.getElementById(objname).style.display = 'none';
    }
}

function Blur(objname) {    
    if (document.getElementById('txt' + objname).value == '') {
        if (document.activeElement.id == 'txt' + objname) {
            obj = document.getElementById(objname).style.display = 'none';
        }
        else {
            obj = document.getElementById(objname).style.display = 'block';
        }
    }
}

function Focustxt(txtobjname, objname) {
    document.getElementById(objname).style.display = 'none';
}

function Blurtxt(txtobjname, objname) {

    obj1 = document.getElementById(txtobjname) 
    if (obj1 == null)
    {
        return;
    }

    if (obj1.value == '') {
        obj2 = document.getElementById(objname).style.display = 'block';
    }
}

// -->
