﻿function validateAdmin(state)
{

var remail =/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+|[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+)$/;
var checkIfAlphabet=/[a-zA-Z]/;
var checkifSymbol = /[^_a-zA-Z0-9]/;
var sEmail=document.getElementById("txtemail");
var sAdd=document.getElementById("txtaddress");
var sCountry=document.getElementById("ddlcountry");
var iTelNo=document.getElementById("txtphone");
var sFax=document.getElementById("txtfax");
var iContactPerson=document.getElementById("txtcontactperson");
    try
    {
    
  //Name
    var a = document.getElementById("txtusername");
    if (a.value =='')
    {
    alert('Please enter signin name!');
    a.focus();
      return false;
    } 
    if (state==0)
    {
    //Password
    var a = document.getElementById("txtpassword");
    if (a.value =='')
    {
    alert('Please enter your Password!');
    a.focus();
      return false;
    } 
   //Confirmed Password
    var a = document.getElementById("txtcpassword");
    if (a.value =='')
    {
    alert('Please enter Confirmed Password!');
    a.focus();
      return false;
    } 
    
    //Check Password
    var a = document.getElementById("txtpassword");
    var b = document.getElementById("txtcpassword");
    if (a.value != b.value)
    {
    alert('Passsword and Confirmed password does not match. Please Re-Enter password!');
    a.focus();
      return false;
    } 
 }
      //Company
    var a = document.getElementById("txtcompany");
    if (a.value =='')
    {
    alert('Please enter Company name!');
    a.focus();
      return false;
    } 
    if(sEmail.value=='')
      {
       alert('Please enter your email address!');
       sEmail.focus();
       return false;
      }
      if(!remail.test(sEmail.value))
        {
          alert("Please enter your emailid properly.");
          sEmail.focus();
          return false;
        }  
        
             
         if(!remail.test(document.getElementById("txtuseraccemail").value))
        {
          alert("Please enter your emailid(User account) properly.");
          document.getElementById("txtuseraccemail").focus();
          return false;
        }  
        
         if(!remail.test(document.getElementById("txtsaemail").value))
        {
          alert("Please enter your emailid (Superadmin payment) properly.");
          document.getElementById("txtsaemail").focus();
          return false;
        }  
        
         if(!remail.test(document.getElementById("txtuserregemail").value))
        {
          alert("Please enter your emailid (User registration) properly.");
          document.getElementById("txtuserregemail").focus();
          return false;
        }  
        
         if(!remail.test(document.getElementById("txtcallemail").value))
        {
          alert("Please enter your emailid (Call me back) properly.");
          document.getElementById("txtcallemail").focus();
          return false;
        }  
     
     var s= document.getElementById("txtsiteowner");
     if (s.value =='')
    {
    alert('Please enter Site Owner!');
    s.focus();
      return false;
    } 
     
     var s= document.getElementById("txtsitename");
     if (s.value =='')
    {
    alert('Please enter Site Name!');
    s.focus();
      return false;
    } 
     
     var s= document.getElementById("txtprefix");
     if (s.value =='')
    {
    alert('Please enter CustomerId Prefix!');
    s.focus();
      return false;
    } 
     
     
      if(sAdd.value=='')
      {
       alert('Please enter your company address!');
       sAdd.focus();
       return false;
      }
      
       var b = document.getElementById("ddlcountry");
    
         if (b[0].selected == true)
         {
         
             alert('Please select your Country!');
            b.focus();
                return false;
         }
           
      if(iTelNo.value=='')
      {
       alert('Please enter your contact number!');
       iTelNo.focus();
       return false;
       }
       
      if(sFax.value=='')
      {
       alert('Please enter your fax number!');
       sFax.focus();
       return false;
      }
      
      if(iContactPerson.value=='')
      {
       alert('Please enter contact person name!');
       iContactPerson.focus();
       return false;
      }
      
       var s= document.getElementById("txtcreditLimit");
     if (s.value =='')
    {
    alert('Please enter Credit Limit!');
    s.focus();
      return false;
    } 
    
    var s= document.getElementById("txtcreditdate");
    if (s.value =='')
    {
    alert('Please enter Credit Limit Date!');
    s.focus();
      return false;
    } 
    
    }
    catch(exception)
    {
    alert('error!');
    return false;
    }    
}

function LoginValidation()
{
 var sUserName=document.getElementById("left1$txtuser")
 var sPassword=document.getElementById("left1$txtpassword")
 if(sUserName.value =='')
 {
  alert("Please Enter User Login Name.");
  sUserName.focus();
  return false;
 }
 if(sPassword.value =='')
 {
  alert("Please Enter User Login Password.");
  sPassword.focus();
  return false;
 }
}


function validate(state)
{
var remail =/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+|[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+)$/;
var checkIfAlphabet=/[a-zA-Z]/;
var checkifSymbol = /[^_a-zA-Z0-9]/;
var sEmail=document.getElementById("txtemail");
var sCCEmail=document.getElementById("txtccemail");
var sAdd=document.getElementById("txtaddress");
var sCountry=document.getElementById("ddlcountry");
var iTelNo=document.getElementById("txtphone");
var sFax=document.getElementById("txtfax");
var iContactPerson=document.getElementById("txtcontactperson");
    try
    {
    
  //Name
    var a = document.getElementById("txtusername");
    if (a.value =='')
    {
    alert('Please enter signin name!');
    a.focus();
      return false;
    } 
    
    if (state==0)
    {
    //Password
    var a = document.getElementById("txtpassword");
    if (a.value =='')
    {
    alert('Please enter your Password!');
    a.focus();
      return false;
    } 
   //Confirmed Password
    var a = document.getElementById("txtcpassword");
    if (a.value =='')
    {
    alert('Please enter Confirmed Password!');
    a.focus();
      return false;
    } 
    
    //Check Password
    var a = document.getElementById("txtpassword");
    var b = document.getElementById("txtcpassword");
    if (a.value != b.value)
    {
    alert('Passsword and Confirmed password does not match. Please Re-Enter password!');
    a.focus();
      return false;
    } 
    }
      //Company
    var a = document.getElementById("txtcompany");
    if (a.value =='')
    {
    alert('Please enter Company name!');
    a.focus();
      return false;
    } 
    if(sEmail.value=='')
      {
       alert('Please enter your email address!');
       sEmail.focus();
       return false;
      }
      if(!remail.test(sEmail.value))
        {
          alert("Please enter your emailid properly.");
          sEmail.focus();
          return false;
        }    
        
      
         
        
       //      if(sCCEmail.value=='')
//      {
//       alert('Please enter your CCemail address!');
//       sCCEmail.focus();
//       return false;
//       }
//       if(!remail.test(sCCEmail.value))
//        {
//          alert("Please enter your emailid properly.");
//          sCCEmail.focus();
//          return false;
//        } 

      if(sAdd.value=='')
      {
       alert('Please enter your company address!');
       sAdd.focus();
       return false;
      }
      
//      if(sCountry.value=='')
//      {
//       alert('Please select your country name!');
//       sCountry.focus();
//       return false;
//      }

 var b = document.getElementById("ddlcountry");
    
         if (b[0].selected == true)
         {
             alert('Please select your Country!');
            b.focus();
                return false;
         }
      
      if(iTelNo.value=='')
      {
       alert('Please enter your contact number!');
       iTelNo.focus();
       return false;
       }
      if(sFax.value=='')
      {
       alert('Please enter your fax number!');
       sFax.focus();
       return false;
      }
      
      if(iContactPerson.value=='')
      {
       alert('Please enter contact person name!');
       iContactPerson.focus();
       return false;
      }
    
    }
    catch(exception)
    {
    alert('error!');
    }    
}

function LoginValidation()
{
 var sUserName=document.getElementById("left1$txtuser")
 var sPassword=document.getElementById("left1$txtpassword")
 if(sUserName.value =='')
 {
  alert("Please Enter User Login Name.");
  sUserName.focus();
  return false;
 }
 if(sPassword.value =='')
 {
  alert("Please Enter User Login Password.");
  sPassword.focus();
  return false;
 }
}

function removeSpaces(string) 
{
	var tstring = "";
	string = '' + string;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	tstring += splitstring[i];
	return tstring;
}


function OrderQuoteValidation()
{
var dConfirm = 'Yes'
var remail=/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+|[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+)$/;
var checkIfAlphabet=/[a-zA-Z]/;
var checkifSymbol = /[^_a-zA-Z0-9]/;
var sDesign=document.getElementById("txtdesign")
var scomments=document.getElementById("txtcomments")
var sFile1=document.getElementById("File1")
var sFile2=document.getElementById("File2")
var iWidth=document.getElementById("txtwidth")
var iHeight=document.getElementById("txtheight")
var iValue=document.getElementById("cmdSave")

if(remail.test(scomments.value))
  {
    //alert("Please no email address in comments fields.");
    //scomments.focus();
    //return false;
  } 
if(scomments.value !='')
  {
    icount=0
     sData=removeSpaces(scomments.value);
    for(var i=0;i<=sData.length-1;i++)
    {
      ivals=sData.charCodeAt(i)
      if(ivals >=48 && ivals <=57)
        {
         icount=icount+1
		 if(icount==6)
  	     {
		   //alert("Please no contacts number in comments fields.");
	       //alert("**Please do not mention any contact numbers in comments field as our workflow doesnot allow us to make any other form of contact with our customers. In case of a emergency please send us a mail to 911@inhousedigitizing.com.Please mention your customer code as well as your phone number.") ;
	       
	      // scomments.focus();
           //return false;
		 }
	    }
		  else
	    {
	    icount=0
	    }
	}
  }  
   if(trim(sDesign.value,"") =="")
	{
	 alert("Please enter design name");
	 sDesign.focus();
    return false;
	}
	
	    var b = document.getElementById("lstfab");
         var c=0;
         for(var i =0; i<b.length; i++)
         {
         if (b[i].selected == true)
         {
            var c=1;
         }
         }
        if (c==0)
        {
            alert('Please Select Fabric Type!!');
            b.focus();
            return false;
        }
        
        var b = document.getElementById("rdTurn_0");
        var c = document.getElementById("rdTurn_1");
        
        if (b.checked == false && c.checked == false)
        {
            alert('Please Select Turnaround Time!!');
            return false;
        }
        
        
         if(iWidth.value == "" )
	   {
	     alert("Please enter width.")
         iWidth.focus();
         return false;
	   }
        
	
	 if(sFile1.value == "" && sFile2.value == "" )
	{
		alert("Please browse anyone of the image to upload. ");
		sFile1.focus();
    return false;
	}
	
	
	          
         
     
       
	 // document.frm.action="addorder.asp?mVal=SaveData&mTask=Image&title=" + document.frm.txt_DesignName.value + "&Format=" + document.frm.cmb_FormatType.value +"&Fabric= " +document.frm.cmb_FabricType.value  + "&other="+document.frm.txt_FabricOther.value + "&Width=" + document.frm.txt_Width.value + "&height=" + document.frm.txt_Height.value + "&col=" + document.frm.cmb_Color.value + "&othercol=" + document.frm.txt_OtherColor.value + "&Measure=" + document.frm.cmb_MeasureType.value + "&comm=" + document.frm.txtar_Comments.value + "&Schid=" + document.frm.Schid.value + "&Ttime=" +document.frm.cmb_TurnAroundTime.value+"&sPromocode="+document.frm.txt_Promocode.value+"&sPOrder="+document.frm.txt_POrder.value;
	//  document.frm.submit(); 
}


function EditOrderQuoteValidation()
{
var dConfirm = 'Yes'
var remail=/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+|[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+)$/;
var checkIfAlphabet=/[a-zA-Z]/;
var checkifSymbol = /[^_a-zA-Z0-9]/;
var sDesign=document.getElementById("txtdesign")
var scomments=document.getElementById("txtcomments")
var sFile1=document.getElementById("File1")
var sFile2=document.getElementById("File2")
var iWidth=document.getElementById("txtwidth")
var iHeight=document.getElementById("txtheight")
var iValue=document.getElementById("cmdSave")

if(remail.test(scomments.value))
  {
   // alert("Please no email address in comments fields.");
   // scomments.focus();
   // return false;
  } 
if(scomments.value !='')
  {
    icount=0
     sData=removeSpaces(scomments.value,"");
   
    for(var i=0;i<=sData.length-1;i++)
    {
      ivals=sData.charCodeAt(i)
      if(ivals >=48 && ivals <=57)
        {
         icount=icount+1
		 if(icount==6)
  	     {
		  //alert("**Please do not mention any contact numbers in comments field as our workflow doesnot allow us to make any other form of contact with our customers. In case of a emergency please send us a mail to rmacali@inhousedigitizing.net.Please mention your customer code as well as your phone number.") ;
	      // scomments.focus();
          // return false;
		 }
	    }
		else
	    {
	    icount=0
	    }  
	}
  }  
  if(trim(sDesign.value,"") =="")
	{
	 alert("Please enter design name");
	 sDesign.focus();
    return false;
	}
	
	    var b = document.getElementById("lstfab");
         var c=0;
         for(var i =0; i<b.length; i++)
         {
         if (b[i].selected == true)
         {
            var c=1;
         }
         }
        if (c==0)
        {
            alert('Please Select Fabric Type!!');
            b.focus();
            return false;
        }
        
        var b = document.getElementById("rdTurn_0");
        var c = document.getElementById("rdTurn_1");
        
        if (b.checked == false && c.checked == false)
        {
            alert('Please Select Turnaround Time!!');
            return false;
        }
        
        
         if(iWidth.value == "" )
	   {
	     alert("Please enter eny one valuewidth.")
         iWidth.focus();
         return false;
	   }
//        
	 
         
     
       
	 // document.frm.action="addorder.asp?mVal=SaveData&mTask=Image&title=" + document.frm.txt_DesignName.value + "&Format=" + document.frm.cmb_FormatType.value +"&Fabric= " +document.frm.cmb_FabricType.value  + "&other="+document.frm.txt_FabricOther.value + "&Width=" + document.frm.txt_Width.value + "&height=" + document.frm.txt_Height.value + "&col=" + document.frm.cmb_Color.value + "&othercol=" + document.frm.txt_OtherColor.value + "&Measure=" + document.frm.cmb_MeasureType.value + "&comm=" + document.frm.txtar_Comments.value + "&Schid=" + document.frm.Schid.value + "&Ttime=" +document.frm.cmb_TurnAroundTime.value+"&sPromocode="+document.frm.txt_Promocode.value+"&sPOrder="+document.frm.txt_POrder.value;
	//  document.frm.submit(); 
}

function ValidateSendMessage()
{
try
{

var remail =/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+|[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+\.+[a-zA-Z0-9-]+)$/;
    var checkIfAlphabet=/[a-zA-Z]/;
    var checkifSymbol = /[^_a-zA-Z0-9]/;
    var sEmail=document.getElementById("txtemail");
    var scomments=document.getElementById("txtcomments");
      var subject=document.getElementById("txtsubject");


      if(sEmail.value!='')
      {
         //  var sdata=removeSpaces(document.getElementById("txtemail").value);
      if(!remail.test(sEmail.value))
        {
          alert("Please enter your emailid properly!");
          sEmail.focus();
          return false;
        } 
     }
     

  if(subject.value =="")
	{
	 alert("Please add Subject to message");
	 subject.focus();
    return false;
	}
	
	if(scomments.value =="")
	{
	 alert("Please add Comments to message");
	 scomments.focus();
    return false;
	}
	
	      if(subject.value !='')
  {
    icount=0
    sData=removeSpaces(subject.value,"");
   
    for(var i=0;i<=sData.length-1;i++)
    {
      ivals=sData.charCodeAt(i)
      if(ivals >=48 && ivals <=57)
        {
         icount=icount+1
		 if(icount==6)
  	     {
		   alert("**Please do not mention any contact numbers in subject field as our workflow doesnot allow us to make any other form of contact with our customers. In case of a emergency please send us a mail to rmacali@inhousedigitizing.net.Please mention your customer code as well as your phone number.") ;
	       subject.focus();
           return false;
		 }
	    }
		else
		{
		   icount=0
		}  
	}
  }  
  
  
     
     
     if(scomments.value !='')
  {
    icount=0
    sData=removeSpaces(scomments.value,"");
   
    for(var i=0;i<=sData.length-1;i++)
    {
      ivals=sData.charCodeAt(i)
      if(ivals >=48 && ivals <=57)
        {
         icount=icount+1
		 if(icount==6)
  	     {
		  // alert("**Please do not mention any contact numbers in comments field as our workflow doesnot allow us to make any other form of contact with our customers. In case of a emergency please send us a mail to rmacali@inhousedigitizing.net.Please mention your customer code as well as your phone number.") ;
	       //scomments.focus();
          // return false;
		 }
	    }
		else
		{
		   icount=0
		}  
	}
  }  
  
  
	 }
	 catch(exception)
    {
    alert('error!');
    return false;
    }   
    
}


function validatechangepassword()
{
  //Password
    var a = document.getElementById("txtpassword");
    if (a.value =='')
    {
    alert('Please enter your Password!');
    a.focus();
      return false;
    } 
   //Confirmed Password
    var a = document.getElementById("txtcpassword");
    if (a.value =='')
    {
    alert('Please enter Confirmed Password!');
    a.focus();
      return false;
    } 
    
    //Check Password
    var a = document.getElementById("txtpassword");
    var b = document.getElementById("txtcpassword");
    if (a.value != b.value)
    {
    alert('Password and Confirmed password does not match. Please Re-Enter password!');
    a.focus();
      return false;
    } 
}
function connect()
{
	//create browser specific objects
	browser=navigator.userAgent.toLowerCase();

	/*
	if(browser.indexOf("msie")!=-1)
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		xmlhttp=new XMLHttpRequest();
	}
	*/
	if(window.XMLHttpRequest)
	{
	    xmlhttp = new XMLHttpRequest();
	}
	else if(window.ActiveXObject)
	{
	    //xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
		xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");
	}
	else if(window.ActiveXObject)
	{
	    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
}
function manage_Order(oType,rTurn,rIndex)
{
  
   if (rIndex != 2)
   {
    
	connect();
	loginurl='https://inhousedigitizing.net/Manage_OrderPage.aspx?oType='+oType+'&rTurn='+rTurn+'&rIndex='+rIndex;
	//loginurl='https://win.notasco.com/embdotnet/Manage_OrderPage.aspx?oType='+oType+'&rTurn='+rTurn+'&rIndex='+rIndex;
	xmlhttp.open('GET',loginurl,true);
	//xmlhttp.send(null);
	//xmlhttp.onreadystatechange=state_Change;
	//{
	xmlhttp.onreadystatechange=function()
	{
	    if(xmlhttp.readyState==4)
	    {
	       
			var result=xmlhttp.responseText;
			document.getElementById('Label1').innerHTML = result;
			   /*if (xmlhttp.status==200)
                {
                     //document.getElementById('Div1').innerHTML = result;
                    //alert(xmlhttp.responseText);
                    document.getElementById('Label1').innerHTML = result;
                }*/
             		
		}
	
	}
	xmlhttp.send(null);
	}
}
function state_Change()
{

if (xmlhttp.readyState==4)
  {
  
  if (xmlhttp.status==200)
    {
    //alert("XML data OK")
    }
  else
    {
    //alert("Problem retrieving XML data:" );
    }
  }
}

///call back
//function manage_callback(email,sub,message)
//{
//  
//     
//	connect();
//	loginurl='http://www.inhousedigitizing.net/default2.aspx?email='+email+'&sub='+sub+'&message='+message;
//	//loginurl='http://win.notasco.com/embdotnet/Manage_OrderPage.aspx?oType='+oType+'&rTurn='+rTurn+'&rIndex='+rIndex;
//	xmlhttp.open('GET',loginurl,true);
//	//xmlhttp.send(null);
//	//xmlhttp.onreadystatechange=state_Change;
//	//{
//	xmlhttp.onreadystatechange=function()
//	{
//	    if(xmlhttp.readyState==4)
//	    {
//	       
//			var result=xmlhttp.responseText;
//			
//			document.getElementById('left1_lbldisplay').innerHTML = result;
//			document.getElementById('left1_txtemail').value = "";
//			document.getElementById('left1_txtsubject').value = "";
//			document.getElementById('left1_txtmessage').value = "";
//			         /*if (xmlhttp.status==200)
//                {
//                     //document.getElementById('Div1').innerHTML = result;
//                    //alert(xmlhttp.responseText);
//                    document.getElementById('Label1').innerHTML = result;
//                }*/
//             		
//		}
//	
//	}
//	xmlhttp.send(null);
//	
//}
function manage_callback(email,sub,message,phone,custid,f)
{
      
	connect();
	loginurl='https://inhousedigitizing.net/default2.aspx?email='+email+'&sub='+sub+'&message='+message+'&phone='+phone+'&custid='+custid+'&f='+f;	//loginurl='http://win.notasco.com/embdotnet/Manage_OrderPage.aspx?oType='+oType+'&rTurn='+rTurn+'&rIndex='+rIndex;
	xmlhttp.open('GET',loginurl,true);
	//xmlhttp.send(null);
	//xmlhttp.onreadystatechange=state_Change;
	//{
	xmlhttp.onreadystatechange=function()
	{
	    if(xmlhttp.readyState==4)
	    {
	       
			var result=xmlhttp.responseText;
			
			document.getElementById('left1_lbldisplay').innerHTML = result;
			document.getElementById('left1_txtemail').value = "";
			document.getElementById('left1_txtsubject').value = "";
			document.getElementById('left1_txtmessage').value = "";
		    document.getElementById("left1_txtphone").value  = "";
			document.getElementById("left1_txtsubject1").value  = "";
            document.getElementById("left1_txtmessage1").value  = ""; 
            document.getElementById("left1_txtphone1").value  = "";
            document.getElementById("left1_txtcustid").value  = "";
			         /*if (xmlhttp.status==200)
                {
                     //document.getElementById('Div1').innerHTML = result;
                    //alert(xmlhttp.responseText);
                    document.getElementById('Label1').innerHTML = result;
                }*/
             		
		}
	
	}
	xmlhttp.send(null);
	
}

       function trim(str, chars) {
    return ltrim(rtrim(str, chars), chars);
}

function ltrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}

function rtrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}


function callmeback()
{
   //width=400;
  // height=130;
  // winLeft = (screen.width-width)/2; 
  // winTop = (screen.height-(height+110))/2; 
   var Mybars='directories=no,toolbar=no,location=no,menubar=no,status=no,titlebar=no';
   var Myoption='scrollbars=no,width=400,height=520,left=300,top=50,resizeable=yes;'
   var Myfe= Mybars + ','+ Myoption;
   var newin = open('https://inhousedigitizing.net/Callmeback.aspx','mydoc100',Myfe);
 //newin.moveTo(winLeft,winTop)
}

function recent()
{
   //width=400;
  // height=130;
  // winLeft = (screen.width-width)/2; 
  // winTop = (screen.height-(height+110))/2; 
   var Mybars='directories=no,toolbar=no,location=no,menubar=no,status=no,titlebar=no';
   var Myoption='scrollbars=no,width=400,height=400,left=300,top=300,resizeable=yes;'
   var Myfe= Mybars + ','+ Myoption;
   var newin = open('https://inhousedigitizing.net/ViewRecentActivity.aspx','mydoc100',Myfe);
 //newin.moveTo(winLeft,winTop)
}


   function uShowOrder(oid,dname,img)
      {
      height=430;
      winTop = (screen.height-(height+110))/2; 
      window.document.getElementById("DvFormat").style.top=500;
       window.document.getElementById("DvFormat").style.display = 'block';
       var d = document.getElementById("Image1");
       var e = document.getElementById("Label4");
       var f = document.getElementById("Label5");
     //  alert(oid);
     //d.src='http://72.35.80.178/Upload/' + img;
	 d.src='Display1.aspx?file=' + img;
       e.innerHTML=oid;
       f.innerHTML=dname;
      
      }
      function uHideOrder()
      {
       window.document.getElementById("DvFormat").style.display = 'none';
      }
      
     
        


