//screen3
function getelement(e){
	return document.getElementById(e);
}
function filesharecheck(){
	var checkflag=false;
	var name=getelement("name").value;
	if(!name){
		alert("Your Name is required.");
		return checkflag;
	}
	var email=getelement("email").value;
	if(!email){
		alert("Your Email is required.");
		return checkflag;
	}
	var rename=getelement("rename").value;
	if(!rename){
		alert("Receiver Name is required.");
		return checkflag;
	}
	var reemail=getelement("reemail").value;
	if(!reemail){
		alert("Receiver Email is required.");
		return checkflag;
	}
	var heading=getelement("heading").value;
	if(!heading){
		alert("Heading is required.");
		return checkflag;
	}
	document.fileshare.submit();	
}
function resetBgx2(){
var fullbg=$("#fullbg2").css("display");
if(fullbg=="block"){
var bH2=$("body").height();
var bW2=$("body").width();
$("#fullbg2").css({width:bW2,height:bH2});
var objV=getObjWh("dialog2");
var tbT=objV.split("|")[0]+"px";
var tbL=objV.split("|")[1]+"px";
$("#dialog2").css({top:tbT,left:tbL});
}
}
function closediv2(){		
	$("#fullbg2").css("display","none");
	$("#dialog2").css("display","none");		
}
function showBg2(ct,content){
var bH=$("body").height();
var bW=$("body").width();
var objWH=getObjWh(ct);
$("#fullbg2").css({width:bW,height:bH,display:"block"});
var tbT=objWH.split("|")[0]+"px";
var tbL=objWH.split("|")[1]+"px";
$("#"+ct).css({top:tbT,left:tbL,display:"block"});
$("#"+content).html("<div style='position:absolute; text-align:center; margin:7px auto; background-color: #2B2B2B; filter:Alpha(Opacity=30); -moz-opacity:0.8; opacity: 0.8; width:441px; height:431px;'></div><div style='width:428px; height:417px; position:absolute; padding-top:14px; padding-left:7px; z-index:6; text-align:center;'><form id='fileshare' name='fileshare' action='http://edocweb.com/filesharedo.php' method='post'  ENCTYPE=\"multipart/form-data\"><input name='sendfiletag' type='hidden' value='true'/><table width='428' height='417' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF' style='color:#000000;'><tr><td valign='top' width='428' height='43' colspan='2' align='left'><div style=\"width:428px; height:43px; \"><div><a href='javascript:void(0);' onclick='closediv2();'><img src='./images/emailafriendclose.png' border='0' style='margin-top:13px; margin-left:13px;'/></a></div></div></td></tr><tr><td width='150' align='center' style='font-size:14px;'><span style='padding-left:20px;'>Your Email</span></td><td width='278' align='center'><input id='email' name='email' type='text' style='width:256px; height:34px; line-height:34px;'/></td></tr><tr><td width='150' align='center' style='font-size:14px;'><span style='padding-left:20px;'>Your Name</span></td><td width='278' align='center'><input id='name' name='name' type='text' style='width:256px; height:34px; line-height:34px;'/></td></tr><tr><td width='150' align='center' style='font-size:14px;'><span style='padding-left:20px;'>Receiver Email</span></td><td width='278' align='center'><input id='reemail' name='reemail' type='text' style='width:256px; height:34px; line-height:34px;'/></td></tr><tr><td width='150' align='center' style='font-size:14px;'><span style='padding-left:20px;'>Receiver Name</span></td><td width='278' align='center'><input id='rename' name='rename' type='text' style='width:256px; height:34px; line-height:34px;'/></td></tr><tr><td width='150' align='center' style='font-size:14px;'><span style='padding-left:20px;'>Heading</span></td><td width='278' align='center'><input id='heading' name='heading' type='text' style='width:256px; height:34px; line-height:34px;'/></td></tr><tr><td width='150' align='center' style='font-size:14px;'><span style='padding-left:20px;'>Message</span></td><td width='278' align='center'><textarea name='message' style='width:256px; height:64px;'></textarea></td></tr><tr><td width='150' style='font-size:14px;'><span style='padding-left:20px;'>File</span></td><td width='278' align='center'><input name='file' type='file'/></td></tr><tr><td width='150' align='center' style='font-size:14px;'></td><td width='278' align='left' valign='middle'><table border='0' align='left' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'><tr><td width='120'><input name='sendfile' type='button' onclick=\"filesharecheck();\" style=\"width:66px; height:34px; margin-left:30px;\" value='Send'/></td><td></td></tr></table></td></tr></table></form></div>");
$(window).scroll(function(){resetBgx2()});
$(window).resize(function(){resetBgx2()});
}
