function clearEmail(thefield){
            if (thefield.defaultValue==thefield.value) thefield.value = "";
            }         
        function setEmail(thefield){
            if (thefield.value == "") thefield.value = thefield.defaultValue;
            }    
        function clearPass(thefield){
            if (thefield.defaultValue==thefield.value) thefield.value = "";
            }         
        function setPass(thefield){
            if (thefield.value == "") thefield.value = thefield.defaultValue;
            }    
            
    // top menu mouse over effect        
    function imgOver(imageID, imageOver, imgOut){
    var currentimage =  imageID.src;
   imageOver = "../images/leftmenu/" + imageOver ;
    imgOut = "../images/leftmenu/" + imgOut ;    
    var matchPos1 = currentimage.search(imageOver);
    
    if(matchPos1 !=  -1){
    imageID.src = imgOut;
    //document.getElementById(imageID).setAttribute("src",imgOut );    
    }
    else{
    imageID.src = imageOver;
   //document.getElementById(imageID).setAttribute("src", imageOver);  
   }   
}

function imgOut(imageID, imageOver, imgOut){
   var currentimage = imageID.src; // document.getElementById(imageID).getAttribute("src");
    imgOut = "../images/leftmenu/" + imgOut ;    
    imageOver = "../images/leftmenu/" + imageOver ;
    var matchPos1 = currentimage.search(imgOut);
    
    if(matchPos1 !=  -1){
    imageID.src = imageOver;
   //document.getElementById(imageID).setAttribute("src", imageOver);
    }
    else{   
    imageID.src = imgOut;
//    document.getElementById(imageID).setAttribute("src", imgOut);
    }
}

// -----------------Open pop up window --------------//
function openPopup(url, name){
window.open(url, name , "width=700, height=600, left=10, top=10, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
}

function openWindow(url, name){
window.open(url, name , "width=800, height=600, left=10, top=10, location=yes, menubar=yes, resizable=yes, scrollbars=yes, status=yes, toolbar=yes, fullscreen=no");
}

function PrintThisPage(content)
	{
		var url = "../general/printerfriendly.aspx?content=" + content;
		var p = window.open(url, "printFriendly", "width=700, height=600, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=yes, toolbar=no, fullscreen=no");
	}
	
			
function VerifyMsg(f_ld,c_nt,cnt_fld) {

	var len = f_ld.value.length
	var cl

	if ((len == 1) && (f_ld.value.substring(0, 1) == " ")) {
		f_ld.value = ""
		len = 0
	}
	if (len > (c_nt-10)) {
		f_ld.value = f_ld.value.substring(0, c_nt)
		cl = 0
	}
	else {
		cl = c_nt - len
	}
	//eval(cnt_fld).value = cl
}
function test()
{alert("asdasd");
}