function onfocusmouse(thiscon,fun,blurfun){
	var id=thiscon.id;
	var thisvalue=$.trim(thiscon.value);
	var htmls=$('#submitprom').html()
	if(htmls==null)
	$('#'+id).parent().append(submitprom);  
	
	if(thisvalue==submitcon || thisvalue==''){
		thiscon.value='';
		$('#sybmitconporm').val(submitcon);
	}else if(thisvalue==submitcon1){
		thiscon.value='';
		$('#sybmitconporm').val(submitcon1);		
	}
	
	$('#'+id).attr("onBlur", 'onblurmouse(this,"'+blurfun+'")');
	$('#'+id).keypress(function(e){
		 keypress(e,thiscon,fun)
		/* var postvalue=$.trim($('#'+id).val());
		  var content= $('#'+id).val();
		if(e.ctrlKey && e.keyCode==13){
			 var tagname= $("#"+id).attr("tagName");
			  if(tagname=='textarea' || tagname=='TEXTAREA'){
			 	content+="\n";
			  }
			  thiscon.value=content;
		  }else if(e.keyCode==13){
			  if( postvalue==$('#sybmitconporm').val() || postvalue==''){
			  		thiscon.value=$('#sybmitconporm').val();
			  }else{  
				  if(fun!=''){
						var funname=eval(fun);
						funname;
				  }
				
			  }
		 }*/
	});	
}
function onblurmouse(thiscon,blurfun){
	var id=thiscon.id;
	if($.trim(thiscon.value)=='' ){thiscon.value=$('#sybmitconporm').val()};
	$('#submitprom').attr('display','none');
	$('#submitprom').remove();
	$('#'+id).unbind('keypress');
	if(blurfun!='')
	{
		var funname=eval(blurfun);
		funname;
	}
}
function logpost(){
	alert('11111')	
}
function keypress(e,thiscon,fun){
	var id=thiscon.id;
	 var postvalue=$.trim($('#'+id).val());
		  var content= $('#'+id).val();
		if(e.ctrlKey && e.keyCode==13){
			 var tagname= $("#"+id).attr("tagName");
			  if(tagname=='textarea' || tagname=='TEXTAREA'){
			 	thiscon.value += "\n";
			  }
		  }else if(e.keyCode==13){
				
			  if( postvalue==$('#sybmitconporm').val() || postvalue==''){
				 
				   $('#'+id).val($.trim(""));
			  }else{  
				  if(fun!=''){
						var funname=eval(fun);
						funname;
				  }
				
			  }
		 }
}
