function toggleDisplayId(id) {
	
  	if (document.getElementById(id).style.display == 'block') {
		
  		document.getElementById(id).style.display = 'none';
		
  	} else {
		
  		document.getElementById(id).style.display = 'block';
 	}
}
function validatePage()
{
	var email = document.getElementById('to').value;
 	
  	if( ( email == null ) || email.indexOf( ' ' ) != -1
               || email.indexOf( ',' ) != -1 || email.indexOf( '(' ) != -1
               || email.indexOf( ')' ) != -1 || email.indexOf( "@." ) != -1
               || email.indexOf( ".." ) != -1 || email.indexOf( ';' ) != -1
               || email.indexOf( ':' ) != -1 || email.indexOf( '@' ) == -1
               || email.indexOf( '.' ) == -1 || email.length() < 6 )
    {
        alert("Please correct Email Address Or It can not be blank.");
        return false;
    }
   	return true;
}
function copyIE(field,value)
{
    if(document.all){
    var content = eval("document."+field);
    content.focus();
    content.select();
    range = content.createTextRange();
    range.execCommand("Copy");
    window.status="Contents copied to clipboard";
    setTimeout("window.status=''",1800);
    }else{
    	netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	    var gClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"];  
	    var setClbHelper=gClipboardHelper.getService(Components.interfaces.nsIClipboardHelper);  
	    setClbHelper.copyString(value);  
	    window.status="Contents copied to clipboard";
    }
}