﻿function clearTip(field)
	{
		if(field.defaultValue == field.value)
		field.value = "";
	}

	function writeTip(field)
	{
		if(field.value == "")
			field.value = field.defaultValue;
	}	
	
	
	function OpenWindow(fileurl,windowname,windowHeight,windowWidth)
{
    try
    {
    MyWindow.close();
    }
    catch(e)
    {}
    MyWindow = window.open(fileurl,windowname , 'toolbar=0,location=0,status=0,menubar=0,scrollbars=auto,resizable=1,width='+windowWidth+',height='+windowHeight) ;
    return false;
}

function TogglePropertyImage(id1,id2)
{
    var Elem1 = document.getElementById(id1);
    var Elem2 = document.getElementById(id2);
    
    //var temp = Elem1.src;
    //Elem1.src = Elem2.src;
    //Elem2.src = temp;
    Elem2.src = Elem1.src;
}

