


var d=document




function ShowPhoto(furl,fw,fh,fname)
{
    var fh2 = fh+90;
    var fw2 = fw+90;
    Showin=window.open(furl,"photo","toolbar=no,menubar=no,scrollbars=no,resizable=no,height="+fh2+",width="+fw2+",top=50,left=50"); //  height: '+fh2+'px;
    Showin.document.open();
    Showin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>صوْ FM : '+fname+'</title>');
	Showin.document.writeln('</head><body style="text-align: center; padding: 20px; background: url(../images/bg.gif) repeat;"><img src="'+furl+'" alt="" style="width: '+fw+'px; height: '+fh+'px; border: 15px solid #FFFFFF;"></body></html>');
    Showin.document.close();
    Showin.focus();
    return false;
}
function ShowPhotoTitle(furl,fw,fh,fname)
{
    var fh2 = fh+140;
    var fw2 = fw+110;
    Showin=window.open(furl,"photo","toolbar=no,menubar=no,scrollbars=yes,resizable=no,height="+fh2+",width="+fw2+",top=50,left=50"); //  height: '+fh2+'px;
    Showin.document.open();
    Showin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>صوْ FM : '+fname+'</title>');
	Showin.document.writeln('</head><body style="text-align: center; padding: 20px; background: url(../images/bg.gif) repeat;"><img src="'+furl+'" alt="" style="width: '+fw+'px; height: '+fh+'px; border: 15px solid #FFFFFF; margin: 0px 0px 15px 0px"><p style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;	font-size: 13px; color: #000000;">'+fname+'</p></body></html>');
    Showin.document.close();
    Showin.focus();
    return false;
}

function trim(s)
{
	var i,j;
	for (i = 0; i < s.length && s.charAt(i) == " "; i++);
	for (j = s.length-1; j >= 0 && s.charAt(j) == " "; j--);
	if (i<=j)
		return s.substring(i, j+1);
	else
		return '';
}
function CheckValue(thisname, sourse_text)
{
	var keyword_value = trim(thisname.value);
	if (keyword_value=='')
		thisname.value=sourse_text;
}
function HideValue(thisname, sourse_text)
{
	var keyword_value = trim(thisname.value);
	if (keyword_value==sourse_text)
	thisname.value='';
}

