magick93

js 4 iframe

Jun 27th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1.  
  2. function OpenTOC(lang) {
  3. tcwindow = window.open("http://http://www.saxomt4.com/china/"+getLang()"/home/termsofuse.aspx", 'Terms_Conditions',
  4.  
  5. 'scrollbars=1,height=600,width=800');
  6. }
  7.  
  8. function OpenPrivacyPolicy(lang) {
  9. ppwindow = window.open("http://www.saxomt4.com/china/"+getLang()"/home/privacypolicy.aspx", 'Privacy_Policy',
  10.  
  11. 'scrollbars=1,height=600,width=800');
  12. }
  13.  
  14. function OpenDisclaimer(lang) {
  15. dwindow = window.open("http://www.saxomt4.com/china/"+getLang()"/home/disclaimer.aspx", 'Disclaimer',
  16.  
  17. 'scrollbars=1,height=600,width=800');
  18. }
  19.  
  20. function OpenRiskWarning(lang) {
  21. dwindow = window.open("http://www.saxomt4.com/china/"+getLang()"/home/riskwarning.aspx", 'Warning',
  22.  
  23. 'scrollbars=1,height=600,width=800');
  24. }
  25.  
  26. function OpenTOU(lang) {
  27. dwindow = window.open("http://http://www.saxomt4.com/china/"+getLang()"/home/termsofuse.aspx", 'Terms Of Use',
  28.  
  29. 'scrollbars=1,height=600,width=800');
  30. }
  31.  
  32.  
  33.  
  34. function getLang(){
  35. var pathArray = window.location.pathname.split( '/' );
  36.  
  37. var lang= athArray[2];
  38.  
  39. return lang;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment