﻿
function Details_Handler(id, pid) {


    if (document.getElementById("tr" + id).style.display == "none") 
    {
        document.getElementById("tr" + id).style.display = "";
         document.getElementById("td" + id).innerHTML = "<iframe align='left' id='ifr" + id + "' name='ifr" + id + "' frameborder='no' scrolling='no' src='Resume.asp?id=" + id + "&PID=" + pid + "' width='484' height='145' ></iframe>";				
       
    }
    else 
    {

        document.getElementById("td" + id).innerHTML = "";
        document.getElementById("tr" + id).style.display = "none";
        
    }
}


//function Details_Handler(id,pid) {

//	trDetailsopen = document.getElementById("trDetailsopen" + id);
//	tdDetailsopen = document.getElementById("tdDetailsopen" + id);
//	
//	if(trDetailsopen.style.display == "none")
//	{					
//		trDetailsopen.style.display = "";
//		tdDetailsopen.innerHTML = "<iframe align='left' id='ifr" + id + "' name='ifr" + id + "' frameborder='no' scrolling='no' src='Resume.asp?id=" + id + "&PID=" + pid + "' width='484' height='145' ></iframe>";				
//	}
//	else
//	{
//	
//		tdDetailsopen.innerHTML = "";	
//		trDetailsopen.style.display = "none";
//	}	
//}


	//====================================================\\
	function Clear(num)
	{
			
		if(document.getElementById("FreeText").value == "הקלד/י טקסט חופשי לחיפוש" && num==1)
			document.getElementById("FreeText").value = ""

	}
	//====================================================\\
	function Fill(num)
	{
			
		if(document.getElementById("FreeText").value == "" && num==1)
			document.getElementById("FreeText").value = "הקלד/י טקסט חופשי לחיפוש"
			
	}

	function CheckLogin()
	{
		un = document.getElementById("mUsername");
		pw = document.getElementById("mPassword");
		
		if(un.value == "" || un.value == "כתובת אימייל"){alert("אנא מלא כתובת אימייל"); return false; un.focus();}
		if(pw.value == ""){alert("אנא מלא סיסמה"); return false; pw.focus();}
		
		return true;
	}
	
	function Win(URL, name, width, height)
	{
		var x = screen.width;
		var y = screen.height;
		x=(x/2)-(width/2);
		y=(y/2)-(height/2);
		var wini = window.open(URL, name, "top="+y+",left="+x+",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width="+width+",height="+height+",resizable=yes");
		wini.window.focus();
	}
	
    var bookmarkurl="http://www.globtech.co.il"
    var bookmarktitle="Globtech"

    function addbookmark(){
    if (document.all)
    window.external.AddFavorite(bookmarkurl,bookmarktitle)
    }

