
var b;
function customerPlan()
{
 
			 if(!b)
			b=new dijit.Dialog({id:"abcde",title: 'Choose Plan',style:"width:50%"});
			b.setContent("Please Wait.....");
			b.show();
			//dojo.connect(this.d,"hide",this.removeField);
						
		dojo.xhrGet({
		url: "customer_customerPlan.action",
		handleAs: "text",
		preventCache:true,
		form: "frm_user",
		load: function(data,args){
		b.setContent(data);
		//b.show();	
						
				}});
			
}


function forum()
{

   
	dojo.xhrGet({
		url: "login_callAjaxLogin.action",
		handleAs: "text",
		form: "customerPlan",
		preventCache:true,
		load: function(data,args)
		{
			var isIdPresent=data;
			if(isIdPresent=="0")
			{
				userRegistration();
			}
			if(isIdPresent=="1")
			{
				companyRegistration();
			}
			
		}});
}





function userRegistration(){
		
			   b.hide();
			   document.forms[1].action = "register_display.action";			  
			   document.forms[1].submit(); 						
		
}


function companyRegistration(){
			
			   b.hide();
			   document.forms[1].action = "companyRegister_companyRegistrationPage.action";			  
			   document.forms[1].submit(); 						
		
}


 function callLoginPage()
{

		dojo.xhrGet({
		url: "login_display.action",
		handleAs: "text",
		preventCache:true,
		form: "customerPlan",
		load: function(data,args){
		b.setContent(data);
		b.show();	
						
				}});
			
}




