function alternate(id){ //For getting a easy ready lines
	 if(document.getElementsByTagName){  
	   var table = document.getElementById(id);  
	   var rows = table.getElementsByTagName("tr");  
	   for(i = 0; i < rows.length; i++){          
		 if(i % 2 == 0){
		   rows[i].className = "even";
		 }else{
		   rows[i].className = "odd";
		 }      
	   }
	 }
	}
	
function openClose(objName){ //For opening and closing the help

	obj = document.getElementById(objName); 
    alert(obj);
	if(obj.style.display!="none"){
		obj.style.display="none";
	} else{
		obj.style.display="block";
	}
}
function change_row_color(row_id,clsname){
	//alert(row_id);
	n_class_name = clsname;
	//p_class_name = document.getElementById(row_id).className;
	document.getElementById(row_id).className = n_class_name;
	//alert(p_class_name);
}

function call_print(){
    window.open('print.php', '', 'left=0,top=0,width=900,height=600,toolbar=1,scrollbars=1,status=0');
}

function call_print_property(p_id,type){
    if(type=="R"){
        window.open('print_property.php?p_id='+p_id+'&type='+type, '', 'left=0,top=0,width=900,height=600,toolbar=1,scrollbars=1,status=0');
    }else{
        window.open('print_property_c.php?p_id='+p_id+'&type='+type, '', 'left=0,top=0,width=900,height=600,toolbar=1,scrollbars=1,status=0');
    }
}

function popUp(URL) {
//alert("pop up");
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=350,left = 240,top = 212');");
}

function popUp_SlShow(URL) {
//alert("pop up");
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'addressbar=no,toolbar=no,scrollbars=1,location=0,statusbar=no,menubar=1,resizable=1,width=700,height=450,left = 240,top = 212');");
}