    var isDOM = (document.getElementById ? true : false);
    var isIE4 = ((document.all && !isDOM) ? true : false);
    var isNS4 = (document.layers ? true : false);
    var cookieEnabled=(navigator.cookieEnabled)? true : false;

function show_hide_Wnd(row_id, float_id, src, width, height) {
    var float = getRef(float_id);
    var row  = getRef(row_id);
		

    if(float.style.visibility == 'visible') {
        float.src              	= "";
        float.style.visibility 	= 'hidden';
    } else {
        //src+=" width="+width+" height="+height;
		float.style.top        	= getTop(row) - 40 + "px";
        float.style.left       	= getLeft(row) + 50 + "px";
		//float.style.top        =  "300px";
		//float.style.left       = "100px";
        float.style.visibility 	= 'visible';
		//float.width		   		= width;
		//float.height	   		= height;
		float.src              	= src;
		//float.src  = src.width.height;
		
    }
}
											    
function getRef(id) {
    if (isDOM) return document.getElementById(id);
    if (isIE4) return document.all[id];
    if (isNS4) return document.layers[id];
}
								
function getLeft(obj) {
    var curleft = 0;
	    
    while(obj.offsetParent) {
	curleft += obj.offsetLeft;
	//alert("curleft="+curleft);
        obj = obj.offsetParent;
    }
																    
    return curleft;
}
																	
function getTop(obj) {
    var curtop = 0;
								    
    while(obj.offsetParent)     {
        curtop += obj.offsetTop;
		//alert("curtop="+curtop);
        obj = obj.offsetParent;
    }
																				    
   return curtop;
}
																			       
function confirmation(msg, path)
{
	if(confirm(msg))
	{
	document.location.href=path;
	}
}

function fsubmitRubSrub(form, value_1, value_2, value_3) 
{
	
document.forms[form].id_rub.value = value_1; 
//alert(document.forms[form].id_rub.value);

document.forms[form].id_s_rub.value = value_2; 
//alert(document.forms[form].id_s_rub.value);

document.forms[form].Get_deatails.value = value_3; 
//alert(document.forms[form].Get_deatails.value);

document.forms[form].submit();

}
