function Help(cntrl)
{
	var help = {};
	help = new NET(cntrl);// inherit net class
	
	/* Attributes */
	
	/* EOF Attributes */
	
	/* Function Declaration */
	
	help.loadPage 						= loadPage;
	help.loadSubPage					= loadSubPage;
	help.refresh						= refresh;
	help.report							= report;
	help.reportAbuse					= reportAbuse;
	help.reportCallback					= reportCallback;
	/* EOF Function Declaration */
	
	/* Function Definition */
	
	function loadPage()
	{	
		help.clearMessage();
		help.adjustWindowHeight();
		$('#help_myspaceid').val(owner.id);
		help.loadSubPage('help');
		$('#help_name').val('');
		$('#help_email').val('');
		$('#help_comments').val('');
		$('#help_subject').val('Select');
		//hover();
	};
	
	function loadSubPage(sub_page)
	{
		$('#faq').hide();
		$('#help').hide();
		switch(sub_page)
		{
		case 'faq':
		$('#faq').show();
		$('#help_heading').html('FAQ');
		break;
		case 'help':
		$('#help').show();
		$('#help_heading').html('Help');
		break;
		}
	};// END OF FUNCTION LOAD SUB PAGE
	
	function refresh()
	{
		help.clearMessage();
		help.loadPage();
	};
	
	function report(uname, email, subject, comments)
	{
		help.makeRequest();
		
	};
	
	function reportCallback(xml)
	{
		var message 					= $(xml).find('message').text();	
		help.outputMessage(message);	
	};
	
	function reportAbuse()
	{		
		var uname 						= $('#help_name').val();
		var email 						= $('#help_email').val();
		var emailRegEx 					= /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;//EMAIL VALIDATION
		var subject 					= $('#help_subject').val();
		var comments					= $('#help_comments').val();
		
		if (uname=="")
		{
			help.outputMessage('You must write your name','w');
			return;
		}
		if(email=="")
		{
			help.outputMessage('You must write your valid email ', 'w');
			return;
		}		
		if(!email.match(emailRegEx))
		{
			help.outputMessage('Invalid email', 'e');
			return;
		}			
		else
		{
			
		}
		if (subject=="" || subject =="select")
		{
			help.outputMessage('Select at least one subject', 'w');
			return;
		}
		if(comments=="")
		{
			help.outputMessage('Write something in comment box', 'i');
		}
		
		help.report(uname, email, subject, comments);
		return;
	};//END OF FUNCTION REPRRT ABUSE
	

	/* EOF Function Definition */
	
	return help;
};