function $$(obj) {return document.getElementById(obj);}
function reg(){
	$$('regform').style.left=(screen.width-275)/2+"px";
	$$('regform').style.display="block";
}
function displayPres(){
	var code='<object id="_ds_20133288" name="_ds_20133288" width="670" height="550" type="application/x-shockwave-flash" data="http://viewer.docstoc.com/v2/"><param name="FlashVars" value="doc_id=20133288&mem_id=1383982&doc_type=ppt&fullscreen=0&allowdownload=1" /><param name="movie" value="http://viewer.docstoc.com/v2/"/><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object>';

	if($$('pres')){
		$$('pres').style.width="670px";
		$$('pres').style.margin="0 auto";
		$$('pres').innerHTML=code;
	}
}
function show(){
	var code='<a title="View Web 2 Applications in PHP document on Scribd" href="http://www.scribd.com/doc/9271398/Web-2-Applications-in-PHP" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">Web 2 Applications in PHP</a> <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_607940697097694" name="doc_607940697097694" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%">		<param name="movie"	value="http://documents.scribd.com/ScribdViewer.swf?document_id=9271398&access_key=key-10vhtp3cx47uiutchdr8&page=1&version=1&viewMode="> 		<param name="quality" value="high"> 		<param name="play" value="true">		<param name="loop" value="true"> 		<param name="scale" value="showall">		<param name="wmode" value="opaque"> 		<param name="devicefont" value="false">		<param name="bgcolor" value="#ffffff"> 		<param name="menu" value="true">		<param name="allowFullScreen" value="true"> 		<param name="allowScriptAccess" value="always"> 		<param name="salign" value="">    				<embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=9271398&access_key=key-10vhtp3cx47uiutchdr8&page=1&version=1&viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_607940697097694_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"></embed>	</object>	<div style="margin: 6px auto 3px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block;">    <a href="http://www.scribd.com/upload" style="text-decoration: underline;">Publish at Scribd</a> or <a href="http://www.scribd.com/browse" style="text-decoration: underline;">explore</a> others:            <a href="http://www.scribd.com/browse?c=120-web-2-0" style="text-decoration: underline;">Web 2.0</a>              <a href="http://www.scribd.com/browse?c=114-technology" style="text-decoration: underline;">Technology</a>                  <a href="http://www.scribd.com/tag/dmw%20technologies" style="text-decoration: underline;">dmw technologies</a>              <a href="http://www.scribd.com/tag/wen%202.0%20application" style="text-decoration: underline;">Web 2.0 Applications</a></div>';
	$$('ppt').innerHTML=code;
}
function validate(){
	var fname=rochak.trim($$('fname').value);
	var email=rochak.trim($$('email').value);
	var mobile=rochak.trim($$('mobile').value);
	var add=rochak.trim($$('add').value);
	if (fname==""){
		alert("Please enter your full name.");
		$$('fname').focus();
		return false;
	}
	if (email==""){
		alert("Please enter your email address.");
		$$('email').focus();
		return false;
	}
	if (!rochak.isValidEmail(email)){
		alert("Please enter a valid email address.");
		$$('email').focus();
		return false;
	}
	if (mobile==""){
		alert("Please enter your mobile address.");
		$$('mobile').focus();
		return false;
	}
	if (mobile.length!=10){
		alert("Please enter a valid mobile address.");
		$$('mobile').focus();
		return false;
	}
		
	if (add==""){
		alert("Please enter your address here.");
		$$('add').focus();
		return false;
	}
	$$('submit').value="Please wait...";
	$$('submit').disabled=true;
	return true;
}
function closed(){ $$('regform').style.display="none";}